diff options
author | Ken Moore <ken@ixsystems.com> | 2017-12-07 13:55:23 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-12-07 13:55:23 -0500 |
commit | f925f25bd8f52c925db974a269d7dfd943f58669 (patch) | |
tree | e0b813e5c1324093cdb0b88576749ea200d8bc2b /src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp | |
parent | Make sure the new traynotification-simple stylesheet is used. (diff) | |
download | lumina-f925f25bd8f52c925db974a269d7dfd943f58669.tar.gz lumina-f925f25bd8f52c925db974a269d7dfd943f58669.tar.bz2 lumina-f925f25bd8f52c925db974a269d7dfd943f58669.zip |
Fix up a couple more things:
1. Add option to load global styles from luminaDesktop.conf
2. Fix up the default icon/menu size of the start menu and item icons.
3. Fix up a signal/slot mis-connect in the start menu.
Diffstat (limited to 'src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp')
-rw-r--r-- | src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp | 9 |
1 files changed, 6 insertions, 3 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 562122ae..d8014f4c 100644 --- a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp +++ b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp @@ -25,9 +25,11 @@ LStartButtonPlugin::LStartButtonPlugin(QWidget *parent, QString id, bool horizon startmenu = new StartMenu(this); connect(startmenu, SIGNAL(CloseMenu()), this, SLOT(closeMenu()) ); connect(startmenu, SIGNAL(UpdateQuickLaunch(QStringList)), this, SLOT(updateQuickLaunch(QStringList))); - //QRect screenSize = QApplication::desktop()->availableGeometry(this); - QSize saved = LSession::handle()->DesktopPluginSettings()->value("panelPlugs/"+this->type()+"/MenuSize", QSize(0, 0)).toSize(); - if(!saved.isNull()){ startmenu->setFixedSize(saved); } //re-load the previously saved value + + QRect screenSize = QApplication::desktop()->availableGeometry(this); + QSize saved = LSession::handle()->DesktopPluginSettings()->value("panelPlugs/"+this->type()+"/MenuSize",QSize(this->fontMetrics().width("x")*30 ,screenSize.height()/1.8)).toSize(); + //qDebug() << "Got Start Menu Saved Size:" << saved; + if(!saved.isNull() && saved.isValid()){ startmenu->setFixedSize(saved); } //re-load the previously saved value menu->setContents(startmenu); button->setMenu(menu); @@ -122,6 +124,7 @@ void LStartButtonPlugin::openMenu(){ menu->setContents(startmenu); if(old!=0){ old->deleteLater(); }*/ //-------- + //qDebug() << "Menu Size:" << startmenu->size(); startmenu->UpdateMenu(); button->showMenu(); } |