Created AccessibleToolButton class.
This class allows tabbing throught the tool bar and changes the button's icon color when the focus is gained by tabbing. It also allows triggering the default action of the button by pressing Enter or Return key. modified: mscore/CMakeLists.txt new file: mscore/accessibletoolbutton.cpp new file: mscore/accessibletoolbutton.h
This commit is contained in:
parent
49885eba34
commit
99df9e782a
1 changed files with 0 additions and 1 deletions
|
@ -8,7 +8,6 @@ namespace Ms {
|
|||
AccessibleToolButton::AccessibleToolButton(QWidget* parent, QAction* defaultQAction ): QToolButton(parent){
|
||||
this->setDefaultAction(defaultQAction);
|
||||
this->setFocusPolicy(Qt::StrongFocus);
|
||||
this->setAutoRaise(true);
|
||||
this->setAccessibleName(defaultQAction->text());
|
||||
this->setAccessibleDescription(defaultQAction->toolTip());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue