aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/desktop-plugins
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-10-20 11:11:54 -0400
committerKen Moore <moorekou@gmail.com>2015-10-20 11:11:54 -0400
commitd566384a4a81497864c30c657ee5ceebb55d3987 (patch)
tree52bb7239cd77eed7a0e61bced39b9b753d2a9428 /lumina-desktop/desktop-plugins
parentMerge branch 'master' of github.com:pcbsd/lumina (diff)
downloadlumina-d566384a4a81497864c30c657ee5ceebb55d3987.tar.gz
lumina-d566384a4a81497864c30c657ee5ceebb55d3987.tar.bz2
lumina-d566384a4a81497864c30c657ee5ceebb55d3987.zip
Ok, *Now* the desktop plugin resizing routine works properly. Also try to fix an issue with the calendar plugin not scaling down appropriately on the bottom/right edges.
Diffstat (limited to 'lumina-desktop/desktop-plugins')
-rw-r--r--lumina-desktop/desktop-plugins/LDPlugin.h5
-rw-r--r--lumina-desktop/desktop-plugins/calendar/CalendarPlugin.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/lumina-desktop/desktop-plugins/LDPlugin.h b/lumina-desktop/desktop-plugins/LDPlugin.h
index 521a89f4..d1a9c743 100644
--- a/lumina-desktop/desktop-plugins/LDPlugin.h
+++ b/lumina-desktop/desktop-plugins/LDPlugin.h
@@ -141,7 +141,10 @@ protected:
}
QWidget::mouseMoveEvent(ev);
}
-
+ void resizeEvent(QResizeEvent *ev){
+ emit PluginResized();
+ QFrame::resizeEvent(ev); //do normal processing
+ }
};
#endif
diff --git a/lumina-desktop/desktop-plugins/calendar/CalendarPlugin.h b/lumina-desktop/desktop-plugins/calendar/CalendarPlugin.h
index e9652e17..133a3af6 100644
--- a/lumina-desktop/desktop-plugins/calendar/CalendarPlugin.h
+++ b/lumina-desktop/desktop-plugins/calendar/CalendarPlugin.h
@@ -33,6 +33,7 @@ public:
timer->setInterval(1800000); //30 minute refresh timer
timer->start();
QTimer::singleShot(0,this, SLOT(updateDate()) );
+ connect(this, SIGNAL(PluginResized()), this, SLOT(UpdateCalendarSize()));
}
~CalendarPlugin(){ timer->stop(); }
@@ -44,6 +45,9 @@ private slots:
cal->showSelectedDate();
}
}
+ void UpdateCalendarSize(){
+ cal->setFixedSize(this->size());
+ }
};
bgstack15