![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
This page model is used by. More...
Inheritance diagram for Digikam::DConfigDlgWdgModel:Signals | |
| void | toggled (DConfigDlgWdgItem *page, bool checked) |
| This signal is emitted whenever a checkable page changes its state. | |
Public Member Functions | |
| DConfigDlgWdgModel (QObject *const parent=nullptr) | |
| Creates a new page widget model. | |
| ~DConfigDlgWdgModel () override=default | |
| Destroys the page widget model. | |
| void | addPage (DConfigDlgWdgItem *item) |
| Adds a new top level page to the model. | |
| DConfigDlgWdgItem * | addPage (QWidget *widget, const QString &name) |
| Adds a new top level page to the model. | |
| void | addSubPage (DConfigDlgWdgItem *parent, DConfigDlgWdgItem *item) |
| Inserts a new sub page in the model. | |
| DConfigDlgWdgItem * | addSubPage (DConfigDlgWdgItem *parent, QWidget *widget, const QString &name) |
| Inserts a new sub page in the model. | |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| These methods are reimplemented from QAbstractItemModel. | |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| QModelIndex | index (const DConfigDlgWdgItem *item) const |
| Returns the index for a given. | |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
| void | insertPage (DConfigDlgWdgItem *before, DConfigDlgWdgItem *item) |
| Inserts a new page in the model. | |
| DConfigDlgWdgItem * | insertPage (DConfigDlgWdgItem *before, QWidget *widget, const QString &name) |
| Inserts a new page in the model. | |
| DConfigDlgWdgItem * | item (const QModelIndex &index) const |
| Returns the. | |
| QModelIndex | parent (const QModelIndex &index) const override |
| void | removePage (DConfigDlgWdgItem *item) |
| Removes the page associated with the given. | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
Public Member Functions inherited from Digikam::DConfigDlgModel | |
| DConfigDlgModel (QObject *const parent=nullptr) | |
| Constructs a page model with the given parent. | |
| ~DConfigDlgModel () override | |
| Destroys the page model. | |
Additional Inherited Members | |
Public Types inherited from Digikam::DConfigDlgModel | |
| enum | Role { HeaderRole = Qt::UserRole + 1 , WidgetRole } |
| Additional roles that DConfigDlgView uses. More... | |
Protected Member Functions inherited from Digikam::DConfigDlgModel | |
| DConfigDlgModel (DConfigDlgModelPrivate &dd, QObject *const parent) | |
Protected Attributes inherited from Digikam::DConfigDlgModel | |
| DConfigDlgModelPrivate *const | d_ptr |
|
explicit |
| parent | The parent object. |
| void Digikam::DConfigDlgWdgModel::addPage | ( | DConfigDlgWdgItem * | item | ) |
| item | The |
| DConfigDlgWdgItem * Digikam::DConfigDlgWdgModel::addPage | ( | QWidget * | widget, |
| const QString & | name | ||
| ) |
| widget | The widget of the page. |
| name | The name which is displayed in the navigation view. |
| void Digikam::DConfigDlgWdgModel::addSubPage | ( | DConfigDlgWdgItem * | parent, |
| DConfigDlgWdgItem * | item | ||
| ) |
| parent | The new page will be insert as child of this |
| item | The |
| DConfigDlgWdgItem * Digikam::DConfigDlgWdgModel::addSubPage | ( | DConfigDlgWdgItem * | parent, |
| QWidget * | widget, | ||
| const QString & | name | ||
| ) |
| parent | The new page will be insert as child of this |
| widget | The widget of the page. |
| name | The name which is displayed in the navigation view. |
| QModelIndex Digikam::DConfigDlgWdgModel::index | ( | const DConfigDlgWdgItem * | item | ) | const |
| void Digikam::DConfigDlgWdgModel::insertPage | ( | DConfigDlgWdgItem * | before, |
| DConfigDlgWdgItem * | item | ||
| ) |
| before | The new page will be insert before this |
| item | The |
| DConfigDlgWdgItem * Digikam::DConfigDlgWdgModel::insertPage | ( | DConfigDlgWdgItem * | before, |
| QWidget * | widget, | ||
| const QString & | name | ||
| ) |
| before | The new page will be insert before this |
| widget | The widget of the page. |
| name | The name which is displayed in the navigation view. |
| DConfigDlgWdgItem * Digikam::DConfigDlgWdgModel::item | ( | const QModelIndex & | index | ) | const |
| void Digikam::DConfigDlgWdgModel::removePage | ( | DConfigDlgWdgItem * | item | ) |
|
signal |
| checked | is true when the |
| page | is checked, or false if the |
| page | is unchecked. |