diff options
author | q5sys <jt@xsystems.com> | 2017-11-03 11:56:31 -0400 |
---|---|---|
committer | q5sys <jt@xsystems.com> | 2017-11-03 11:56:31 -0400 |
commit | 629096f853a493ea65d7432ac1b7e5c4a128d439 (patch) | |
tree | 49552ee678dcf71e9a4496be619ea568b045258d /src-qt5/core/lumina-desktop/panel-plugins/systemstart | |
parent | A bit more work on DD widgets. (diff) | |
download | lumina-629096f853a493ea65d7432ac1b7e5c4a128d439.tar.gz lumina-629096f853a493ea65d7432ac1b7e5c4a128d439.tar.bz2 lumina-629096f853a493ea65d7432ac1b7e5c4a128d439.zip |
fix start menu width
Diffstat (limited to 'src-qt5/core/lumina-desktop/panel-plugins/systemstart')
-rw-r--r-- | src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp index bbcd096c..a4f6adfb 100644 --- a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp +++ b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp @@ -26,7 +26,8 @@ LStartButtonPlugin::LStartButtonPlugin(QWidget *parent, QString id, bool horizon connect(startmenu, SIGNAL(CloseMenu()), this, SLOT(closeMenu()) ); connect(startmenu, SIGNAL(UpdateQuickLaunch(QStringList)), this, SLOT(updateQuickLaunch(QStringList))); menu->setContents(startmenu); - QSize saved = LSession::handle()->DesktopPluginSettings()->value("panelPlugs/"+this->type()+"/MenuSize", QSize(0,0)).toSize(); + QRect screenSize = QApplication::desktop()->availableGeometry(this); + QSize saved = LSession::handle()->DesktopPluginSettings()->value("panelPlugs/"+this->type()+"/MenuSize", QSize(screenSize.width() * 0.2, screenSize.height() * 0.2)).toSize(); if(!saved.isNull()){ startmenu->setFixedSize(saved); } //re-load the previously saved value button->setMenu(menu); |