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>
This commit is contained in:
Tomaz Canabrava 2014-06-19 13:42:49 -03:00 committed by Dirk Hohndel
parent 867d9f1391
commit a08d4ec790
3 changed files with 62 additions and 0 deletions

View file

@ -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