#ifndef CONFIGDATETIMEDLG_H #define CONFIGDATETIMEDLG_H #include #include namespace Ui { class ConfigDateTimeDlg; } class ConfigDateTimeDlg : public QDialog { Q_OBJECT public: explicit ConfigDateTimeDlg(QWidget *parent = 0); ~ConfigDateTimeDlg(); private slots: void on_ctrBtnOk_clicked(); void on_spinBox_valueChanged(int arg1); void on_ctrBtnCancel_clicked(); void on_keyCancel_clicked(); void on_keyEnter_clicked(); void on_focusInSpinBox(QWidget* widget); protected: void keyReleaseEvent(QKeyEvent* event); void keyPressEvent(QKeyEvent* event); private: Ui::ConfigDateTimeDlg *ui; bool m_bInputState; QSignalMapper* m_pMapperSpins; int m_nFocusValue; }; #endif // CONFIGDATETIMEDLG_H