Browse Source

Allow buttons to be focusable

This improves accessibility.
PR #16648.
adaptive-webui-19844
Tyler Dunn 3 years ago committed by GitHub
parent
commit
cf061b7d30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/gui/properties/proptabbar.cpp

3
src/gui/properties/proptabbar.cpp

@ -102,9 +102,6 @@ PropTabBar::PropTabBar(QWidget *parent) @@ -102,9 +102,6 @@ PropTabBar::PropTabBar(QWidget *parent)
// SIGNAL/SLOT
connect(m_btnGroup, &QButtonGroup::idClicked
, this, &PropTabBar::setCurrentIndex);
// Disable buttons focus
for (QAbstractButton *btn : asConst(m_btnGroup->buttons()))
btn->setFocusPolicy(Qt::NoFocus);
}
int PropTabBar::currentIndex() const

Loading…
Cancel
Save