class KPageView |
|
A base class which can handle multiple pages.
This class provides a widget base class which handles multiple pages and allows the user to switch between these pages in different ways. Currently, Auto, Plain, List, Tree and Tabbed face types are available. See also KPageWidget Example:\n
KPageModel *model = new MyPageModel(); Author Tobias Koenig (tokoe@kde.org) |
|
Creates a page view with given parent. |
|
|
Returns the navigation view, depending on the current
face type.
This method can be reimplemented to provide custom navigation views. |
|
Returns the index for the current page or an invalid index if no current page exists. |
|
This signal is emitted whenever the current page changes. The previous page index is replaced by the current index. |
|
Returns the face type of the page view. |
|
Returns the item delegate of the page view. |
|
Returns the model of the page view. |
|
Sets the page with
index - to be the current page and emits
the
See also currentPageChanged signal. |
|
Sets the widget which will be shown when a page is selected that has no own widget set. |
|
Sets the face type of the page view. |
|
Sets the item delegate - which can be used customize the page view. |
|
Sets the model of the page view.
The model has to provide data for the roles defined in KPageModel.Role. |
|
Returns whether the page header should be visible.
This method can be reimplemented for adapting custom views. |
|
Returns the position where the navigation view should be
located according the page stack.
This method can be reimplemented for adapting custom views. |
This enum is used to decide which type of navigation view shall be used in the page view.
Auto | - | - | ||
Plain | - | - | ||
List | - | - | ||
Tree | - | - | ||
Tabbed | - | - |