digiKam
|
A base class for a model used by DConfigDlgView. More...
Public Types | |
enum | Role { HeaderRole = Qt::UserRole + 1 , WidgetRole } |
Public Member Functions | |
DConfigDlgModel (QObject *const parent=nullptr) | |
~DConfigDlgModel () override | |
Protected Member Functions | |
DConfigDlgModel (DConfigDlgModelPrivate &dd, QObject *const parent) | |
Protected Attributes | |
DConfigDlgModelPrivate *const | d_ptr |
A base class for a model used by DConfigDlgView.
This class is an abstract base class which must be used to implement custom models for DConfigDlgView. Additional to the standard Qt::ItemDataRoles it provides the two roles
which are used to return a header string for a page and a QWidget pointer to the page itself.
Additional roles that DConfigDlgView uses.
Enumerator | |
---|---|
HeaderRole | A string to be rendered as page header. |
WidgetRole | A pointer to the page widget. This is the widget that is shown when the item is selected. |
|
explicit |
Constructs a page model with the given parent.
|
override |
Destroys the page model.
References d_ptr.
|
protected |
References d_ptr, and Digikam::DConfigDlgModelPrivate::q_ptr.
|
protected |
Referenced by DConfigDlgModel(), and ~DConfigDlgModel().