Qt Utilities
6.0.6
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
|
Go to the documentation of this file. 1 #ifndef DIALOGS_OPTIONSCATEGORY_H
2 #define DIALOGS_OPTIONSCATEGORY_H
16 Q_PROPERTY(QString displayName READ displayName WRITE setDisplayName NOTIFY displayNameChanged)
17 Q_PROPERTY(QIcon icon READ icon WRITE setIcon NOTIFY iconChanged)
18 Q_PROPERTY(QList<OptionPage *> pages READ pages WRITE assignPages NOTIFY pagesChanged)
24 const QString &displayName()
const;
25 void setDisplayName(
const QString &displayName);
26 const QIcon &icon()
const;
27 void setIcon(
const QIcon &icon);
28 const QList<OptionPage *> &pages()
const;
29 void assignPages(
const QList<OptionPage *> &pages);
32 bool matches(
const QString &searchKeyWord)
const;
33 int currentIndex()
const;
34 void setCurrentIndex(
int currentIndex);
42 QString m_displayName;
44 QList<OptionPage *> m_pages;
95 return m_currentIndex;
108 #endif // DIALOGS_OPTIONSCATEGORY_H
void setIcon(const QIcon &icon)
Sets the icon of the category.
void displayNameChanged(const QString &displayName)
Emitted when the display name changed.
QList< OptionPage * > pages
#define QT_UTILITIES_EXPORT
Marks the symbol to be exported by the qtutilities library.
void pagesChanged(const QList< OptionPage * > &pages)
Emitted when the pages changed.
The OptionCategory class wraps associated option pages.
void setCurrentIndex(int currentIndex)
Sets the current index.
void iconChanged(const QIcon &icon)
Emitted when the icon changed.
int currentIndex() const
Returns the index of the currently shown page.
void setDisplayName(const QString &displayName)
Sets the display name of the category.