mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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
2 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue