44 lines
611 B
C++
44 lines
611 B
C++
#ifndef SETNUMDLG_H
|
|
#define SETNUMDLG_H
|
|
|
|
#include <QDialog>
|
|
|
|
namespace Ui {
|
|
class SetNumDlg;
|
|
}
|
|
|
|
class SetNumDlg : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SetNumDlg(QWidget *parent = 0);
|
|
~SetNumDlg();
|
|
|
|
bool getIsSet();
|
|
|
|
int getNum();
|
|
|
|
bool getIsSetCur();
|
|
|
|
int getCurNum();
|
|
|
|
private slots:
|
|
void on_btn_confirm_clicked();
|
|
|
|
private:
|
|
Ui::SetNumDlg *ui;
|
|
// 是否采用预设值
|
|
bool isSet = false;
|
|
unsigned int num = 0;
|
|
|
|
// 是否采用当前值
|
|
bool isSetCur =false;
|
|
unsigned int curNum = 0;
|
|
|
|
signals:
|
|
void sig_setNum();
|
|
};
|
|
|
|
#endif // SETNUMDLG_H
|