mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
867d9f1391
commit
a08d4ec790
3 changed files with 62 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue