diff options
author | Ken Moore <ken@ixsystems.com> | 2017-09-18 10:46:52 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-09-18 10:46:52 -0400 |
commit | a9671a98baf769f750f6fc3a85fe184968fbfda8 (patch) | |
tree | 148ea2092d9c9a59277195585d0d1d15f9e5002b /src-qt5/core/lumina-desktop/desktop-plugins | |
parent | Minor change: (diff) | |
download | lumina-a9671a98baf769f750f6fc3a85fe184968fbfda8.tar.gz lumina-a9671a98baf769f750f6fc3a85fe184968fbfda8.tar.bz2 lumina-a9671a98baf769f750f6fc3a85fe184968fbfda8.zip |
Fix up the icon sync on theme change, and change the icon for lumina-mediaplayer to one that exists in more themes
Diffstat (limited to 'src-qt5/core/lumina-desktop/desktop-plugins')
-rw-r--r-- | src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.h | 11 |
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 |