summaryrefslogtreecommitdiff
path: root/noncore/apps/qashmoney/datepicker.h
authorallenforsythe <allenforsythe>2003-05-04 22:02:48 (UTC)
committer allenforsythe <allenforsythe>2003-05-04 22:02:48 (UTC)
commit4593e3cf4eca4867e34b3220007c24523cf642b6 (patch) (unidiff)
treebd8071834dec2a5008b1b270c7953f5cfd65754d /noncore/apps/qashmoney/datepicker.h
parent2894d0b14c0b3efa3ce259214b5aa597a6abfed1 (diff)
downloadopie-4593e3cf4eca4867e34b3220007c24523cf642b6.zip
opie-4593e3cf4eca4867e34b3220007c24523cf642b6.tar.gz
opie-4593e3cf4eca4867e34b3220007c24523cf642b6.tar.bz2
Initial revision
Diffstat (limited to 'noncore/apps/qashmoney/datepicker.h') (more/less context) (show whitespace changes)
-rwxr-xr-xnoncore/apps/qashmoney/datepicker.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/noncore/apps/qashmoney/datepicker.h b/noncore/apps/qashmoney/datepicker.h
new file mode 100755
index 0000000..67e63e9
--- a/dev/null
+++ b/noncore/apps/qashmoney/datepicker.h
@@ -0,0 +1,60 @@
1#ifndef DATEPICKER_H
2#define DATEPICKER_H
3
4#include <qdialog.h>
5#include <qlabel.h>
6#include <qdatetime.h>
7#include <qcombobox.h>
8#include <qlayout.h>
9
10class DatePicker : public QDialog
11
12 {
13 Q_OBJECT
14
15 public:
16 QLabel *daylabel;
17 QComboBox *daybox;
18
19 QLabel *monthlabel;
20 QComboBox *monthbox;
21
22 DatePicker ( QDate entrydate );
23 int getDay ();
24 int getMonth ();
25 int getYear ();
26
27 private slots:
28 void setDay ( int );
29 void setMonth ( int );
30 void setYear ( int );
31
32 private:
33 void displayDays ( QComboBox *daybox );
34 void displayMonths ( QComboBox *monthbox );
35 void displayYears ( QComboBox *yearbox );
36
37 QDate date;
38
39 QLabel *yearlabel;
40 QComboBox *yearbox;
41
42 QGridLayout *layout;
43
44 int day, month, year;
45
46 };
47
48#endif
49
50
51
52
53
54
55
56
57
58
59
60