digiKam
Digikam::DConfigDlgModel Class Reference

A base class for a model used by DConfigDlgView. More...

+ Inheritance diagram for Digikam::DConfigDlgModel:

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
 

Detailed Description

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

  • HeaderRole
  • WidgetRole

which are used to return a header string for a page and a QWidget pointer to the page itself.

Member Enumeration Documentation

◆ Role

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.

Constructor & Destructor Documentation

◆ DConfigDlgModel() [1/2]

Digikam::DConfigDlgModel::DConfigDlgModel ( QObject *const  parent = nullptr)
explicit

Constructs a page model with the given parent.

◆ ~DConfigDlgModel()

Digikam::DConfigDlgModel::~DConfigDlgModel ( )
override

Destroys the page model.

References d_ptr.

◆ DConfigDlgModel() [2/2]

Digikam::DConfigDlgModel::DConfigDlgModel ( DConfigDlgModelPrivate dd,
QObject *const  parent 
)
protected

Member Data Documentation

◆ d_ptr

DConfigDlgModelPrivate* const Digikam::DConfigDlgModel::d_ptr
protected

The documentation for this class was generated from the following files: