1 /***********************************************************************
5 ***********************************************************************/
10 #include <QtGui/QWidget>
11 #include <QtGui/QComboBox>
12 #include <QtCore/QDate>
15 *@author Beppe Grimaldi
21 class KDateCombo
: public QComboBox
{
25 KDateCombo(QWidget
*parent
=0);
26 explicit KDateCombo(const QDate
& date
, QWidget
*parent
=0);
29 QDate
& getDate(QDate
*currentDate
);
30 bool setDate(const QDate
& newDate
);
33 KPopupFrame
* popupFrame
;
34 KDatePicker
* datePicker
;
36 void initObject(const QDate
& date
);
38 QString
date2String(const QDate
&);
39 QDate
& string2Date(const QString
&, QDate
* );
42 bool eventFilter (QObject
*, QEvent
*);
43 virtual void mousePressEvent (QMouseEvent
* e
);
46 void dateEnteredEvent(const QDate
&d
=QDate());