Allow buttons to be focusable

This improves accessibility.
PR #16648.
This commit is contained in:
Tyler Dunn
2022-03-16 21:51:47 -07:00
committed by GitHub
parent 7fffb6526c
commit cf061b7d30

View File

@@ -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