configresttimeformatdlg.h 815 Bytes
#ifndef CONFIGRESTTIMEFORMATDLG_H
#define CONFIGRESTTIMEFORMATDLG_H

#include <QDialog>
#include <QSignalMapper>
#include <QKeyEvent>
#include <QVector>

namespace Ui {
class configResttimeFormatDlg;
}

class configResttimeFormatDlg : public QDialog
{
    Q_OBJECT

    void reloadUi(void);

public:
    explicit configResttimeFormatDlg(QWidget *parent = 0);
    ~configResttimeFormatDlg();

private slots:
    void on_ctrBtnOk_clicked();

    void on_ctrBtnCancel_clicked();

public slots:
    void onConfigBtnClicked(const int sel);

protected:
    void keyReleaseEvent(QKeyEvent* event);
    void keyPressEvent(QKeyEvent* event);

private:
    Ui::configResttimeFormatDlg *ui;
    QSignalMapper *m_pSignalMapper;
    int m_nCurSel;
    QVector<QWidget*> m_vectorTabOrder;
};

#endif // CONFIGRESTTIMEFORMATDLG_H