-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTDBClopes.h
48 lines (38 loc) · 940 Bytes
/
TDBClopes.h
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
44
45
46
47
48
#ifndef TDBCLOPES_H
#define TDBCLOPES_H
#include <QSqlQuery>
#include <QVariant>
#include <QSqlRecord>
#include <QDialog>
#include <QLabel>
#include <QGridLayout>
#include <QSpinBox>
#include <QPushButton>
#include <QComboBox>
#include "TDBApplication.h"
#include "TDBDatabase.h"
class TDBClopes : public QDialog
{
Q_OBJECT
private:
int montant;
int quantite;
QGridLayout* layout;
QLabel* marque_label;
QLabel* quantite_label;
QComboBox* marque_combo;
QSpinBox* quantite_spin;
QPushButton* ok_button;
QPushButton* cancel_button;
QString marque;
public:
TDBClopes(QWidget* parent);
~TDBClopes();
QString get_marque() {return marque;}
int money() {return montant;};
int get_quantite() { return quantite;}
private slots:
void ok_pressed();
void cancel_pressed();
};
#endif