diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-06-19 13:55:50 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-20 15:41:46 -0700 |
commit | 1fc22c665310bb37258aacb3d5e6863f52f5662d (patch) | |
tree | 29d3cbcec98303d1af63b62124770daacb4f149f /qt-ui | |
parent | 0223ebf5105a6a4b50d1fd2d852f979f9bc409bd (diff) | |
download | subsurface-1fc22c665310bb37258aacb3d5e6863f52f5662d.tar.gz |
Correctly sets the minimum size of the calendar widget.
The old code cutted the calendar by half.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/simplewidgets.cpp | 1 | ||||
-rw-r--r-- | qt-ui/simplewidgets.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp index 04b6d1f07..32175d218 100644 --- a/qt-ui/simplewidgets.cpp +++ b/qt-ui/simplewidgets.cpp @@ -302,6 +302,7 @@ bool isGnome3Session() DateWidget::DateWidget(QWidget *parent) : QWidget(parent) { setDate(QDate::currentDate()); + setMinimumSize(QSize(64,64)); } void DateWidget::setDate(const QDate& date) diff --git a/qt-ui/simplewidgets.h b/qt-ui/simplewidgets.h index eea3fca30..ba8a23360 100644 --- a/qt-ui/simplewidgets.h +++ b/qt-ui/simplewidgets.h @@ -94,7 +94,6 @@ public: DateWidget(QWidget *parent = 0); void setDate(const QDate& date); QDate date() const; - protected: void paintEvent(QPaintEvent *event); |