2014-05-15 15:15:33 +02:00
|
|
|
|
|
|
|
namespace Ms {
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This class inherits QToolButton and allows tabbing through the tool bar's buttons
|
|
|
|
*/
|
|
|
|
class AccessibleToolButton : public QToolButton{
|
2014-08-12 13:32:56 +02:00
|
|
|
Q_OBJECT
|
2014-05-15 15:15:33 +02:00
|
|
|
public:
|
2014-08-12 10:48:58 +02:00
|
|
|
AccessibleToolButton(QWidget* parent, QAction* defaultQAction );
|
|
|
|
void focusInEvent(QFocusEvent* e);
|
|
|
|
void focusOutEvent(QFocusEvent* e);
|
|
|
|
void keyPressEvent(QKeyEvent *e);
|
|
|
|
};
|
2014-05-15 15:15:33 +02:00
|
|
|
|
|
|
|
}
|