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>
This commit is contained in:
Tomaz Canabrava 2014-06-19 13:55:50 -03:00 committed by Dirk Hohndel
parent 0223ebf510
commit 1fc22c6653
2 changed files with 1 additions and 1 deletions

View file

@ -302,6 +302,7 @@ bool isGnome3Session()
DateWidget::DateWidget(QWidget *parent) : QWidget(parent) DateWidget::DateWidget(QWidget *parent) : QWidget(parent)
{ {
setDate(QDate::currentDate()); setDate(QDate::currentDate());
setMinimumSize(QSize(64,64));
} }
void DateWidget::setDate(const QDate& date) void DateWidget::setDate(const QDate& date)

View file

@ -94,7 +94,6 @@ public:
DateWidget(QWidget *parent = 0); DateWidget(QWidget *parent = 0);
void setDate(const QDate& date); void setDate(const QDate& date);
QDate date() const; QDate date() const;
protected: protected:
void paintEvent(QPaintEvent *event); void paintEvent(QPaintEvent *event);