blob: 67e63e97197cea9a7138003d97c45f03bb0292a4 (
plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
|
#ifndef DATEPICKER_H
#define DATEPICKER_H
#include <qdialog.h>
#include <qlabel.h>
#include <qdatetime.h>
#include <qcombobox.h>
#include <qlayout.h>
class DatePicker : public QDialog
{
Q_OBJECT
public:
QLabel *daylabel;
QComboBox *daybox;
QLabel *monthlabel;
QComboBox *monthbox;
DatePicker ( QDate entrydate );
int getDay ();
int getMonth ();
int getYear ();
private slots:
void setDay ( int );
void setMonth ( int );
void setYear ( int );
private:
void displayDays ( QComboBox *daybox );
void displayMonths ( QComboBox *monthbox );
void displayYears ( QComboBox *yearbox );
QDate date;
QLabel *yearlabel;
QComboBox *yearbox;
QGridLayout *layout;
int day, month, year;
};
#endif
|