1 #ifndef QSETTINGSLAYOUT_H 2 #define QSETTINGSLAYOUT_H 4 #include "qsettingsdialog_global.h" 5 #include "exceptions.h" 9 #include <QSharedPointer> 13 class QSettingsLayoutPrivate;
17 friend class SettingsEntryLayout;
18 friend class SettingsGroupLayout;
19 friend class SettingsSectionLayout;
20 friend class SettingsCategoryLayout;
21 friend class SettingsRootLayout;
56 int displayId()
const;
58 void setDisplayId(
int displayId);
62 void setName(
const QString &name);
66 void setIcon(
const QIcon &icon);
70 void setTooltip(
const QString &tooltip);
72 bool isOptional()
const;
74 void setOptional(
bool optional);
79 bool removeDefaultElement();
82 int elementCount()
const;
88 int indexOfElement(
const QString &elementName)
const;
100 bool optional =
false,
103 void removeElement(
int index);
105 void moveElement(
int indexFrom,
int indexTo);
108 void transferElement(
int indexFrom,
QSettingsLayout targetLayout,
int indexTo);
116 #endif // QSETTINGSLAYOUT_H The layout represents a group.
Definition: qsettingslayout.h:29
The layout represents a section.
Definition: qsettingslayout.h:28
A generic class the defines methods for settings containers.
Definition: qsettingscontainer.h:13
The layout represents a category.
Definition: qsettingslayout.h:27
LayoutType
Defines the different elements a layout can be created for.
Definition: qsettingslayout.h:25
A general class to modifiy the appereance of elements of a settings dialog.
Definition: qsettingslayout.h:15
The main class that represents the dialog itself.
Definition: qsettingsdialog.h:16
The layout represents the dialog itself.
Definition: qsettingslayout.h:26