1 #ifndef DIALOGS_OPTIONSCATEGORY_H 2 #define DIALOGS_OPTIONSCATEGORY_H 17 Q_PROPERTY(QString displayName READ displayName WRITE setDisplayName NOTIFY displayNameChanged)
18 Q_PROPERTY(QIcon icon READ icon WRITE setIcon NOTIFY iconChanged)
19 Q_PROPERTY(QList<
OptionPage *> pages READ pages WRITE assignPages NOTIFY pagesChanged)
25 const QString &displayName() const;
26 void setDisplayName(const QString &displayName);
27 const QIcon &icon() const;
28 void setIcon(const QIcon &icon);
30 void assignPages(const QList<
OptionPage *> pages);
33 bool matches(const QString &searchKeyWord) const;
34 int currentIndex() const;
35 void setCurrentIndex(
int currentIndex);
38 void displayNameChanged();
43 QString m_displayName;
62 m_displayName = displayName;
63 emit displayNameChanged();
98 return m_currentIndex;
107 m_currentIndex = currentIndex;
112 #endif // DIALOGS_OPTIONSCATEGORY_H void setIcon(const QIcon &icon)
Sets the icon of the category.
The OptionCategory class wraps associated option pages.
The OptionPage class is the base class for SettingsDialog pages.
#define QT_UTILITIES_EXPORT
Marks the symbol to be exported by the qtutilities library.
void setDisplayName(const QString &displayName)
Sets the display name of the category.
Provides common dialogs such as AboutDialog, EnterPasswordDialog and SettingsDialog.
int currentIndex() const
Returns the index of the currently shown page.
const QIcon & icon() const
const QList< OptionPage * > pages() const
void setCurrentIndex(int currentIndex)
Sets the current index.