1#ifndef DIALOGS_QT_UTILITIES_QTSETTINGS_H
2#define DIALOGS_QT_UTILITIES_QTSETTINGS_H
8QT_FORWARD_DECLARE_CLASS(QFontDialog)
9QT_FORWARD_DECLARE_CLASS(QSettings)
22QtSettingsData & m_settings;
23QFontDialog *m_fontDialog;
32QtSettingsData & m_settings;
37explicit QtEnvOptionPage(QtSettingsData &settings, QWidget *parentWidget =
nullptr);
41QtSettingsData & m_settings;
49 void disableNotices();
50 void setRetranslatable(
bool retranslatable);
51 void restore(QSettings &settings);
52 void save(QSettings &settings)
const;
54 void reapplyDefaultIconTheme(
bool isPaletteDark);
55 void reevaluatePaletteAndDefaultIconTheme();
57 bool hasCustomFont()
const;
58 bool hasLocaleChanged()
const;
59 operator QtSettingsData &()
const;
61 OptionCategory *category();
64 std::unique_ptr<QtSettingsData> m_d;
#define QT_UTILITIES_EXPORT
Marks the symbol to be exported by the qtutilities library.
QtEnvOptionPage(QtSettingsData &settings, QWidget *parentWidget=nullptr)
QtAppearanceOptionPage(QtSettingsData &settings, QWidget *parentWidget=nullptr)
QtLanguageOptionPage(QtSettingsData &settings, QWidget *parentWidget=nullptr)
QT_UTILITIES_EXPORT bool isPaletteDark(const QPalette &palette=QPalette())
Returns whether palette is dark.
#define DECLARE_EXTERN_UI_FILE_BASED_OPTION_PAGE(SomeClass)
Declares external instantiation of class declared with BEGIN_DECLARE_UI_FILE_BASED_OPTION_PAGE in a c...
#define BEGIN_DECLARE_UI_FILE_BASED_OPTION_PAGE_CUSTOM_CTOR(SomeClass)
Declares a class inheriting from Dialogs::UiFileBasedOptionPage in a convenient way.
#define END_DECLARE_OPTION_PAGE
Must be used after BEGIN_DECLARE_OPTION_PAGE and BEGIN_DECLARE_UI_FILE_BASED_OPTION_PAGE.
#define DECLARE_SETUP_WIDGETS
Declares the method setupWidget() in a convenient way.