#ifndef THEMEMANAGER_H #define THEMEMANAGER_H #include #include #include #include #include #include namespace Ui { class ThemeManager; } class ThemeManager : public QWidget { Q_OBJECT public: explicit ThemeManager(QWidget* parent); ~ThemeManager(); void save(); private slots: void currentChanged(); void showLicense(); private: struct Theme { bool isValid; QIcon icon; QString name; QString author; QString shortDescription; QString longDescription; QString license; }; Theme parseTheme(const QString &name); Ui::ThemeManager *ui; QString m_activeTheme; QHash m_themeHash; }; #endif // THEMEMANAGER_H