diff options
Diffstat (limited to 'qt-ui/simplewidgets.h')
-rw-r--r-- | qt-ui/simplewidgets.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qt-ui/simplewidgets.h b/qt-ui/simplewidgets.h index c7d18bb35..eea3fca30 100644 --- a/qt-ui/simplewidgets.h +++ b/qt-ui/simplewidgets.h @@ -88,6 +88,21 @@ private: time_t dcImageEpoch; }; +class DateWidget : public QWidget { + Q_OBJECT +public: + DateWidget(QWidget *parent = 0); + void setDate(const QDate& date); + QDate date() const; + +protected: + void paintEvent(QPaintEvent *event); + +private: + QDate mDate; + +}; + bool isGnome3Session(); #endif // SIMPLEWIDGETS_H |