1 2 #ifndef __ACCESSIBLETOOLBUTTON_H__ 3 #define __ACCESSIBLETOOLBUTTON_H__ 4 5 namespace Ms { 6 7 /* 8 * This class inherits QToolButton and allows tabbing through the tool bar's buttons 9 */ 10 class AccessibleToolButton : public QToolButton{ 11 Q_OBJECT 12 public: 13 AccessibleToolButton(QWidget* parent, QAction* defaultQAction = 0); 14 void focusInEvent(QFocusEvent* e); 15 void focusOutEvent(QFocusEvent* e); 16 void keyPressEvent(QKeyEvent *e); 17 }; 18 19 } 20 21 #endif // __ACCESSIBLETOOLBUTTON_H__ 22