From 1fc22c665310bb37258aacb3d5e6863f52f5662d Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 19 Jun 2014 13:55:50 -0300 Subject: [PATCH] Correctly sets the minimum size of the calendar widget. The old code cutted the calendar by half. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/simplewidgets.cpp | 1 + qt-ui/simplewidgets.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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);