author | mickeyl <mickeyl> | 2004-11-04 10:33:04 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-11-04 10:33:04 (UTC) |
commit | 7855b19ce0241a7b7b4fc72e3a8ddd9bf73b0a77 (patch) (side-by-side diff) | |
tree | e76604c6af3da9c19b69dcdcf8105d58bac63f71 /noncore/unsupported/qashmoney/datepicker.h | |
parent | cd2d50799e087fad5b56df9d7fe9aa572a313e64 (diff) | |
download | opie-7855b19ce0241a7b7b4fc72e3a8ddd9bf73b0a77.zip opie-7855b19ce0241a7b7b4fc72e3a8ddd9bf73b0a77.tar.gz opie-7855b19ce0241a7b7b4fc72e3a8ddd9bf73b0a77.tar.bz2 |
opie-qashmoney is now unsupported
Diffstat (limited to 'noncore/unsupported/qashmoney/datepicker.h') (more/less context) (ignore whitespace changes)
-rwxr-xr-x | noncore/unsupported/qashmoney/datepicker.h | 60 |
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 + + + + + + + + + + + + |