keep system icon theme setting
This commit is contained in:
parent
3331d2d0c2
commit
754cb2a135
2 changed files with 4 additions and 4 deletions
|
@ -91,6 +91,10 @@ void IconFactory::setCurrentIconTheme(const QString& theme_name) {
|
||||||
qApp->settings()->setValue(GROUP(GUI), GUI::IconTheme, 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() {
|
void IconFactory::loadCurrentIconTheme() {
|
||||||
const QStringList installed_themes = installedIconThemes();
|
const QStringList installed_themes = installedIconThemes();
|
||||||
const QString theme_name_from_settings = qApp->settings()->value(GROUP(GUI), SETTING(GUI::IconTheme)).toString();
|
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);
|
void setCurrentIconTheme(const QString& theme_name);
|
||||||
};
|
};
|
||||||
|
|
||||||
inline QString IconFactory::currentIconTheme() const {
|
|
||||||
return QIcon::themeName();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // ICONFACTORY_H
|
#endif // ICONFACTORY_H
|
||||||
|
|
Loading…
Add table
Reference in a new issue