1 #ifndef ROMSTATEFILTER_H 2 #define ROMSTATEFILTER_H 3 4 #include <QAction> 5 6 #include "ui_romstatefilter.h" 7 8 class RomStateFilter : public QWidget, public Ui::RomStateFilter 9 { 10 Q_OBJECT 11 12 public: 13 RomStateFilter(QWidget *parent = 0); 14 ~RomStateFilter(); 15 16 QAction *actionShowCorrect; 17 QAction *actionShowMostlyCorrect; 18 QAction *actionShowIncorrect; 19 QAction *actionShowNotFound; 20 QAction *actionShowUnknown; 21 22 public slots: 23 void adjustIconSizes(); 24 void on_toolButtonCorrect_toggled(bool); 25 void on_toolButtonMostlyCorrect_toggled(bool); 26 void on_toolButtonIncorrect_toggled(bool); 27 void on_toolButtonNotFound_toggled(bool); 28 void on_toolButtonUnknown_toggled(bool); 29 30 protected: 31 void showEvent(QShowEvent *); 32 void enterEvent(QEvent *); 33 void leaveEvent(QEvent *); 34 }; 35 36 #endif 37