-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTDBRefillDialog.h
More file actions
43 lines (33 loc) · 849 Bytes
/
TDBRefillDialog.h
File metadata and controls
43 lines (33 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef TDBREFILLDIALOG_H
#define TDBREFILLDIALOG_H
#include <QDialog>
#include <QGridLayout>
#include <QValidator>
#include <QComboBox>
#include <QLabel>
#include <QPushButton>
#include <QLineEdit>
#include <QDoubleValidator>
#include "TDBApplication.h"
class TDBRefillDialog : public QDialog
{
Q_OBJECT
private:
QGridLayout* layout;
QLabel* money_label;
QLabel* reason_label;
QLineEdit* money_edit;
QComboBox* reason_combo;
QValidator* valid;
QPushButton* ok_button;
QPushButton* cancel_button;
public:
TDBRefillDialog(QWidget* parent);
~TDBRefillDialog();
int money() {return money_edit->text().toDouble()*100+0.5;}
QString reason();
public slots:
void ok_pressed();
void cancel_pressed();
};
#endif