configdatetimedlg.h 735 Bytes
#ifndef CONFIGDATETIMEDLG_H
#define CONFIGDATETIMEDLG_H

#include <QDialog>
#include <QSignalMapper>


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_ctrBtnCancel_clicked();

    void keyCancel_clicked();
    void keyEnter_clicked();

    void 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