aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h')
-rw-r--r--src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h b/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h
index 34a75ce8..c8e3a475 100644
--- a/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h
+++ b/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h
@@ -30,7 +30,7 @@ public:
~AppLauncherPlugin(){}
void Cleanup(); //special function for final cleanup
-
+
private:
QToolButton *button;
QFileSystemWatcher *watcher;
@@ -45,7 +45,7 @@ private slots:
void iconLoaded(QString);
//void openContextMenu();
-
+
//void increaseIconSize();
//void decreaseIconSize();
//void deleteFile();
@@ -63,11 +63,16 @@ public slots:
void LocaleChange(){
loadButton(); //force reload
}
-
+
protected:
void resizeEvent(QResizeEvent *ev){
LDPlugin::resizeEvent(ev);
QTimer::singleShot(100, this, SLOT(loadButton()) );
}
+ void changeEvent(QEvent *ev){
+ LDPlugin::changeEvent(ev);
+ QEvent::Type tmp = ev->type();
+ if(tmp == QEvent::StyleChange || tmp==QEvent::ThemeChange || tmp==QEvent::LanguageChange || tmp==QEvent::LocaleChange){ loadButton(); }
+ }
};
#endif
bgstack15