keep system icon theme setting
This commit is contained in:
parent
3331d2d0c2
commit
754cb2a135
@ -91,6 +91,10 @@ void IconFactory::setCurrentIconTheme(const QString& theme_name) {
|
||||
qApp->settings()->setValue(GROUP(GUI), GUI::IconTheme, theme_name);
|
||||
}
|
||||
|
||||
QString IconFactory::currentIconTheme() const {
|
||||
return qApp->settings()->value(GROUP(GUI), SETTING(GUI::IconTheme)).toString();
|
||||
}
|
||||
|
||||
void IconFactory::loadCurrentIconTheme() {
|
||||
const QStringList installed_themes = installedIconThemes();
|
||||
const QString theme_name_from_settings = qApp->settings()->value(GROUP(GUI), SETTING(GUI::IconTheme)).toString();
|
||||
|
@ -52,8 +52,4 @@ class RSSGUARD_DLLSPEC IconFactory : public QObject {
|
||||
void setCurrentIconTheme(const QString& theme_name);
|
||||
};
|
||||
|
||||
inline QString IconFactory::currentIconTheme() const {
|
||||
return QIcon::themeName();
|
||||
}
|
||||
|
||||
#endif // ICONFACTORY_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user