aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
authorq5sys <jt@xsystems.com>2017-11-03 11:56:31 -0400
committerq5sys <jt@xsystems.com>2017-11-03 11:56:31 -0400
commit629096f853a493ea65d7432ac1b7e5c4a128d439 (patch)
tree49552ee678dcf71e9a4496be619ea568b045258d /src-qt5
parentA bit more work on DD widgets. (diff)
downloadlumina-629096f853a493ea65d7432ac1b7e5c4a128d439.tar.gz
lumina-629096f853a493ea65d7432ac1b7e5c4a128d439.tar.bz2
lumina-629096f853a493ea65d7432ac1b7e5c4a128d439.zip
fix start menu width
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp3
-rw-r--r--src-qt5/desktop-utils/lumina-fm/BrowserModel.h4
2 files changed, 5 insertions, 2 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);
diff --git a/src-qt5/desktop-utils/lumina-fm/BrowserModel.h b/src-qt5/desktop-utils/lumina-fm/BrowserModel.h
index 0968b4d4..b30e117e 100644
--- a/src-qt5/desktop-utils/lumina-fm/BrowserModel.h
+++ b/src-qt5/desktop-utils/lumina-fm/BrowserModel.h
@@ -60,6 +60,9 @@ public:
LFileInfo* fileInfo(QString name);
QString currentDirectory();
+ void setShowHidden(bool showHidden);
+ bool showHidden
+
public slots:
void loadDirectory(QString dir="");
void loadItem(QString item);
@@ -82,4 +85,3 @@ signals:
};
#endif
-
bgstack15