diff options
Diffstat (limited to 'lumina-desktop/desktop-plugins/calendar/CalendarPlugin.h')
-rw-r--r-- | lumina-desktop/desktop-plugins/calendar/CalendarPlugin.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lumina-desktop/desktop-plugins/calendar/CalendarPlugin.h b/lumina-desktop/desktop-plugins/calendar/CalendarPlugin.h index 133a3af6..b3a6a8d7 100644 --- a/lumina-desktop/desktop-plugins/calendar/CalendarPlugin.h +++ b/lumina-desktop/desktop-plugins/calendar/CalendarPlugin.h @@ -28,7 +28,6 @@ public: cal = new QCalendarWidget(this); cal->setSelectionMode(QCalendarWidget::NoSelection); this->layout()->addWidget(cal); - this->setInitialSize( cal->sizeHint().width(), cal->sizeHint().height() ); timer = new QTimer(this); timer->setInterval(1800000); //30 minute refresh timer timer->start(); @@ -38,6 +37,11 @@ public: ~CalendarPlugin(){ timer->stop(); } + virtual QSize defaultPluginSize(){ + // The returned QSize is in grid points (typically 100 or 200 pixels square) + return QSize(3,2); + } + private slots: void updateDate(){ if(cal->selectedDate() != QDate::currentDate()){ |