diff options
Diffstat (limited to 'qt-ui/simplewidgets.h')
-rw-r--r-- | qt-ui/simplewidgets.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/qt-ui/simplewidgets.h b/qt-ui/simplewidgets.h index ba8a23360..3600f59b7 100644 --- a/qt-ui/simplewidgets.h +++ b/qt-ui/simplewidgets.h @@ -88,18 +88,23 @@ private: time_t dcImageEpoch; }; +class QCalendarWidget; + class DateWidget : public QWidget { Q_OBJECT public: DateWidget(QWidget *parent = 0); - void setDate(const QDate& date); QDate date() const; +public slots: + void setDate(const QDate& date); protected: void paintEvent(QPaintEvent *event); - + void mousePressEvent(QMouseEvent *event); +signals: + void dateChanged(const QDate& date); private: QDate mDate; - + QCalendarWidget *calendarWidget; }; bool isGnome3Session(); |