1#ifndef DIALOGS_OPTIONSCATEGORY_H
2#define DIALOGS_OPTIONSCATEGORY_H
10#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
11Q_MOC_INCLUDE(
"settingsdialog/optionpage.h")
20 Q_PROPERTY(QString displayName READ displayName WRITE setDisplayName NOTIFY displayNameChanged)
21 Q_PROPERTY(QIcon icon READ icon WRITE setIcon NOTIFY iconChanged)
22 Q_PROPERTY(QList<OptionPage *> pages READ pages WRITE assignPages NOTIFY pagesChanged)
28 const QString &displayName()
const;
29 void setDisplayName(
const QString &displayName);
30 const QIcon &icon()
const;
31 void setIcon(
const QIcon &icon);
32 const QList<OptionPage *> &pages()
const;
33 void assignPages(
const QList<OptionPage *> &pages);
36 bool matches(
const QString &searchKeyWord)
const;
37 int currentIndex()
const;
38 void setCurrentIndex(
int currentIndex);
46 QString m_displayName;
48 QList<OptionPage *> m_pages;
99 return m_currentIndex;
The OptionCategory class wraps associated option pages.
void setCurrentIndex(int currentIndex)
Sets the current index.
void setDisplayName(const QString &displayName)
Sets the display name of the category.
void pagesChanged(const QList< QtUtilities::OptionPage * > &pages)
Emitted when the pages changed.
int currentIndex() const
Returns the index of the currently shown page.
void displayNameChanged(const QString &displayName)
Emitted when the display name changed.
void setIcon(const QIcon &icon)
Sets the icon of the category.
QList< OptionPage * > pages
void iconChanged(const QIcon &icon)
Emitted when the icon changed.
#define QT_UTILITIES_EXPORT
Marks the symbol to be exported by the qtutilities library.