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:
parent
0223ebf510
commit
1fc22c6653
@ -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)
|
||||
|
||||
@ -94,7 +94,6 @@ public:
|
||||
DateWidget(QWidget *parent = 0);
|
||||
void setDate(const QDate& date);
|
||||
QDate date() const;
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *event);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user