delay a few things on startup, such as setting the visibility mode, which ensures...
[personal-kdebase.git] / apps / kfind / kdatecombo.h
blob855955d27fcf9fd3dd5b7d01f457fa0ee2b855a3
1 /***********************************************************************
3 * kdatecombo.h
5 ***********************************************************************/
7 #ifndef KDATECOMBO_H
8 #define KDATECOMBO_H
10 #include <QtGui/QWidget>
11 #include <QtGui/QComboBox>
12 #include <QtCore/QDate>
14 /**
15 *@author Beppe Grimaldi
18 class KDatePicker;
19 class KPopupFrame;
21 class KDateCombo : public QComboBox {
22 Q_OBJECT
24 public:
25 KDateCombo(QWidget *parent=0);
26 explicit KDateCombo(const QDate & date, QWidget *parent=0);
27 ~KDateCombo();
29 QDate & getDate(QDate *currentDate);
30 bool setDate(const QDate & newDate);
32 private:
33 KPopupFrame * popupFrame;
34 KDatePicker * datePicker;
36 void initObject(const QDate & date);
38 QString date2String(const QDate &);
39 QDate & string2Date(const QString &, QDate * );
41 protected:
42 bool eventFilter (QObject*, QEvent*);
43 virtual void mousePressEvent (QMouseEvent * e);
45 protected Q_SLOTS:
46 void dateEnteredEvent(const QDate &d=QDate());
49 #endif