summaryrefslogtreecommitdiff
path: root/noncore/unsupported/qashmoney/datepicker.h
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/qashmoney/datepicker.h') (more/less context) (ignore whitespace changes)
-rwxr-xr-xnoncore/unsupported/qashmoney/datepicker.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/noncore/unsupported/qashmoney/datepicker.h b/noncore/unsupported/qashmoney/datepicker.h
new file mode 100755
index 0000000..67e63e9
--- a/dev/null
+++ b/noncore/unsupported/qashmoney/datepicker.h
@@ -0,0 +1,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
+
+
+
+
+
+
+
+
+
+
+
+