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/panel-plugins/applauncher | |
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/panel-plugins/applauncher')
-rw-r--r-- | src-qt5/core/lumina-desktop/panel-plugins/applauncher/AppLaunchButton.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/applauncher/AppLaunchButton.h b/src-qt5/core/lumina-desktop/panel-plugins/applauncher/AppLaunchButton.h index 3aa3c7ad..f146df66 100644 --- a/src-qt5/core/lumina-desktop/panel-plugins/applauncher/AppLaunchButton.h +++ b/src-qt5/core/lumina-desktop/panel-plugins/applauncher/AppLaunchButton.h @@ -24,11 +24,11 @@ // PANEL PLUGIN BUTTON class AppLaunchButtonPlugin : public LPPlugin{ Q_OBJECT - + public: AppLaunchButtonPlugin(QWidget *parent = 0, QString id = "applauncher", bool horizontal=true); ~AppLaunchButtonPlugin(); - + private: QToolButton *button; QString appfile; @@ -50,14 +50,18 @@ public slots: this->layout()->update(); updateButtonVisuals(); } - - void LocaleChange(){ + void LocaleChange(){ updateButtonVisuals(); } - void ThemeChange(){ updateButtonVisuals(); } +protected: + void changeEvent(QEvent *ev){ + LPPlugin::changeEvent(ev); + QEvent::Type tmp = ev->type(); + if(tmp == QEvent::StyleChange || tmp==QEvent::ThemeChange || tmp==QEvent::LanguageChange || tmp==QEvent::LocaleChange){ updateButtonVisuals(); } + } }; -#endif
\ No newline at end of file +#endif |