diff options
author | Ken Moore <moorekou@gmail.com> | 2015-07-10 02:35:11 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-07-10 02:35:11 -0400 |
commit | fb8955c15a73911e53fdf1e7a7ada2630272ffd5 (patch) | |
tree | e73df3ba004f52539be9f57758123309d1764f3c /lumina-desktop/desktop-plugins/systemmonitor | |
parent | Update lumina-config to list all desktop plugins on the screen, and only make... (diff) | |
download | lumina-fb8955c15a73911e53fdf1e7a7ada2630272ffd5.tar.gz lumina-fb8955c15a73911e53fdf1e7a7ada2630272ffd5.tar.bz2 lumina-fb8955c15a73911e53fdf1e7a7ada2630272ffd5.zip |
Ok, NOW the desktop plugins layout methodology is consistent/reliable. Had to implement my own tiling algorithm for initial plugin placements (and adjust a lot of the plugins to have better auto-set default sizes depending on font settings)
Diffstat (limited to 'lumina-desktop/desktop-plugins/systemmonitor')
-rw-r--r-- | lumina-desktop/desktop-plugins/systemmonitor/MonitorWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lumina-desktop/desktop-plugins/systemmonitor/MonitorWidget.cpp b/lumina-desktop/desktop-plugins/systemmonitor/MonitorWidget.cpp index 981e411d..6a300b6c 100644 --- a/lumina-desktop/desktop-plugins/systemmonitor/MonitorWidget.cpp +++ b/lumina-desktop/desktop-plugins/systemmonitor/MonitorWidget.cpp @@ -55,7 +55,7 @@ SysMonitorPlugin::SysMonitorPlugin(QWidget *parent, QString ID) : LDPlugin(paren this->layout()->setContentsMargins(0,0,0,0); this->layout()->addWidget(monitor); - this->setInitialSize(monitor->width(),monitor->height()); + this->setInitialSize(monitor->sizeHint().width(),monitor->sizeHint().height()); } SysMonitorPlugin::~SysMonitorPlugin(){ |