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:
Andrei Tuicu 2014-05-15 16:15:33 +03:00
parent 49885eba34
commit 99df9e782a

View file

@ -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());
}