diff options
Diffstat (limited to 'lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h')
-rw-r--r-- | lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h b/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h index 796d8f04..d6e75fec 100644 --- a/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h +++ b/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h @@ -34,20 +34,26 @@ public: private: QToolButton *button; QFileSystemWatcher *watcher; - QMenu *menu; + //QMenu *menu; private slots: - void loadButton(bool onchange = false); + void loadButton(); void buttonClicked(); - void openContextMenu(); + //void openContextMenu(); - void increaseIconSize(); - void decreaseIconSize(); - void deleteFile(); + //void increaseIconSize(); + //void decreaseIconSize(); + //void deleteFile(); public slots: void LocaleChange(){ - loadButton(true); //force reload + loadButton(); //force reload + } + +protected: + void resizeEvent(QResizeEvent *ev){ + LDPlugin::resizeEvent(ev); + QTimer::singleShot(10, this, SLOT(loadButton()) ); } }; #endif |