Page widget with many layouts (faces).
More...
Page widget with many layouts (faces).
- See also
- DConfigDlgView with hierarchical page model.
◆ FaceType
This enum is used to decide which type of navigation view shall be used in the page view.
- Auto - Depending on the number of pages in the model, the Plain (one page), the List (several pages) or the Tree face (nested pages) will be used. This is the default face type.
- Plain - No navigation view will be visible and only the first page of the model will be shown.
- List - An icon list is used as navigation view.
- Tree - A tree list is used as navigation view.
- Tabbed - A tab widget is used as navigation view.
Enumerator |
---|
Auto | |
Plain | |
List | |
Tree | |
Tabbed | |
◆ DConfigDlgWdg() [1/2]
Digikam::DConfigDlgWdg::DConfigDlgWdg |
( |
QWidget *const |
parent = nullptr | ) |
|
|
explicit |
◆ ~DConfigDlgWdg()
Digikam::DConfigDlgWdg::~DConfigDlgWdg |
( |
| ) |
|
|
override |
Destroys the page widget.
◆ DConfigDlgWdg() [2/2]
◆ addPage() [1/2]
Adds a new top level page to the widget.
- Parameters
-
- See also
- DConfigDlgWdgItem which describes the page.
◆ addPage() [2/2]
DConfigDlgWdgItem * Digikam::DConfigDlgWdg::addPage |
( |
QWidget * |
widget, |
|
|
const QString & |
name |
|
) |
| |
◆ addSubPage() [1/2]
Inserts a new sub page in the widget.
- Parameters
-
parent | The new page will be insert as child of this |
- See also
- DConfigDlgWdgItem.
- Parameters
-
- See also
- DConfigDlgWdgItem which describes the page.
◆ addSubPage() [2/2]
Inserts a new sub page in the widget.
- Parameters
-
parent | The new page will be insert as child of this |
- See also
- DConfigDlgWdgItem.
- Parameters
-
widget | The widget of the page. |
name | The name which is displayed in the navigation view. |
- Returns
- The associated
- See also
- DConfigDlgWdgItem.
◆ createView()
QAbstractItemView * Digikam::DConfigDlgView::createView |
( |
| ) |
|
|
protectedvirtualinherited |
◆ currentPage()
◆ currentPageChanged [1/2]
void Digikam::DConfigDlgView::currentPageChanged |
( |
const QModelIndex & |
current, |
|
|
const QModelIndex & |
previous |
|
) |
| |
|
signalinherited |
This signal is emitted whenever the current page changes. The previous page index is replaced by the current index.
◆ currentPageChanged [2/2]
This signal is emitted whenever the current page has changed.
- Parameters
-
current | The new current page or 0 if no current page is available. |
Referenced by DConfigDlgWdg().
◆ faceType()
Returns the face type of the page view.
◆ insertPage() [1/2]
Inserts a new page in the widget.
- Parameters
-
before | The new page will be insert before this |
- See also
- DConfigDlgWdgItem on the same level in hierarchy.
- Parameters
-
- See also
- DConfigDlgWdgItem which describes the page.
◆ insertPage() [2/2]
Inserts a new page in the widget.
- Parameters
-
before | The new page will be insert before this |
- See also
- DConfigDlgWdgItem on the same level in hierarchy.
- Parameters
-
widget | The widget of the page. |
name | The name which is displayed in the navigation view. |
- Returns
- The associated
- See also
- DConfigDlgWdgItem.
◆ itemDelegate()
QAbstractItemDelegate * Digikam::DConfigDlgView::itemDelegate |
( |
| ) |
const |
|
inherited |
Returns the item delegate of the page view.
◆ model()
QAbstractItemModel * Digikam::DConfigDlgView::model |
( |
| ) |
const |
|
inherited |
◆ pageRemoved
This signal is emitted when a page is removed.
- Parameters
-
page | The page which is removed |
Referenced by removePage().
◆ pageToggled
This signal is emitted whenever a checkable page changes its state.
- Parameters
-
checked | is true when the |
page | is checked, or false if the |
page | is unchecked. |
Referenced by DConfigDlgWdg().
◆ removePage()
◆ setCurrentPage() [1/2]
void Digikam::DConfigDlgView::setCurrentPage |
( |
const QModelIndex & |
index | ) |
|
|
inherited |
◆ setCurrentPage() [2/2]
◆ setDefaultWidget()
void Digikam::DConfigDlgView::setDefaultWidget |
( |
QWidget * |
widget | ) |
|
|
inherited |
Sets the widget
which will be shown when a page is selected that has no own widget set.
◆ setFaceType()
void Digikam::DConfigDlgView::setFaceType |
( |
FaceType |
faceType | ) |
|
|
inherited |
◆ setItemDelegate()
void Digikam::DConfigDlgView::setItemDelegate |
( |
QAbstractItemDelegate * |
delegate | ) |
|
|
inherited |
Sets the item
- Parameters
-
delegate | which can be used customize the page view. |
◆ setModel()
void Digikam::DConfigDlgView::setModel |
( |
QAbstractItemModel * |
model | ) |
|
|
inherited |
◆ showPageHeader()
bool Digikam::DConfigDlgView::showPageHeader |
( |
| ) |
const |
|
protectedvirtualinherited |
◆ viewPosition()
Qt::Alignment Digikam::DConfigDlgView::viewPosition |
( |
| ) |
const |
|
protectedvirtualinherited |
◆ d_ptr
◆ faceType
FaceType Digikam::DConfigDlgView::faceType |
|
readwriteinherited |
The documentation for this class was generated from the following files: