diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-06-19 13:42:49 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-20 15:41:38 -0700 |
commit | a08d4ec790328248e2f9408ff074f530b502419a (patch) | |
tree | 58ac98f42845b1ec2b8318fc9d4aeaf168fed993 /qt-ui/simplewidgets.h | |
parent | 867d9f13910b04c2023a98db75152f16837c9e35 (diff) | |
download | subsurface-a08d4ec790328248e2f9408ff074f530b502419a.tar.gz |
Added a Partly Functional Date Picker widget.
This widget shows a date in a better way that it was done
in the old widget, much more elegantly.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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 |