summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-06-19 13:55:50 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-20 15:41:46 -0700
commit1fc22c665310bb37258aacb3d5e6863f52f5662d (patch)
tree29d3cbcec98303d1af63b62124770daacb4f149f /qt-ui
parent0223ebf5105a6a4b50d1fd2d852f979f9bc409bd (diff)
downloadsubsurface-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.cpp1
-rw-r--r--qt-ui/simplewidgets.h1
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);