KDEUI
#include <kpagewidget.h>

Signals | |
void | currentPageChanged (KPageWidgetItem *current, KPageWidgetItem *before) |
void | pageRemoved (KPageWidgetItem *page) |
void | pageToggled (KPageWidgetItem *page, bool checked) |
![]() | |
void | currentPageChanged (const QModelIndex ¤t, const QModelIndex &previous) |
Public Member Functions | |
KPageWidget (QWidget *parent=0) | |
~KPageWidget () | |
void | addPage (KPageWidgetItem *item) |
KPageWidgetItem * | addPage (QWidget *widget, const QString &name) |
void | addSubPage (KPageWidgetItem *parent, KPageWidgetItem *item) |
KPageWidgetItem * | addSubPage (KPageWidgetItem *parent, QWidget *widget, const QString &name) |
KPageWidgetItem * | currentPage () const |
void | insertPage (KPageWidgetItem *before, KPageWidgetItem *item) |
KPageWidgetItem * | insertPage (KPageWidgetItem *before, QWidget *widget, const QString &name) |
void | removePage (KPageWidgetItem *item) |
void | setCurrentPage (KPageWidgetItem *item) |
![]() | |
KPageView (QWidget *parent=0) | |
virtual | ~KPageView () |
QModelIndex | currentPage () const |
FaceType | faceType () const |
QAbstractItemDelegate * | itemDelegate () const |
QAbstractItemModel * | model () const |
void | setCurrentPage (const QModelIndex &index) |
void | setDefaultWidget (QWidget *widget) |
void | setFaceType (FaceType faceType) |
void | setItemDelegate (QAbstractItemDelegate *delegate) |
void | setModel (QAbstractItemModel *model) |
Protected Member Functions | |
KPageWidget (KPageWidgetPrivate &dd, QWidget *parent) | |
![]() | |
KPageView (KPageViewPrivate &dd, QWidget *parent) | |
virtual QAbstractItemView * | createView () |
virtual bool | showPageHeader () const |
virtual Qt::Alignment | viewPosition () const |
Additional Inherited Members | |
![]() | |
enum | FaceType { Auto , Plain , List , Tree , Tabbed } |
![]() | |
KPageViewPrivate *const | d_ptr |
![]() | |
FaceType | faceType |
Detailed Description
Page widget with many layouts (faces).
- See also
- KPageView with hierarchical page model.
Definition at line 36 of file kpagewidget.h.
Constructor & Destructor Documentation
◆ KPageWidget() [1/2]
|
explicit |
Creates a new page widget.
- Parameters
-
parent The parent widget.
Definition at line 63 of file kpagewidget.cpp.
◆ ~KPageWidget()
KPageWidget::~KPageWidget | ( | ) |
Destroys the page widget.
Definition at line 76 of file kpagewidget.cpp.
◆ KPageWidget() [2/2]
|
protected |
Definition at line 46 of file kpagewidget.cpp.
Member Function Documentation
◆ addPage() [1/2]
void KPageWidget::addPage | ( | KPageWidgetItem * | item | ) |
Adds a new top level page to the widget.
- Parameters
-
item The
- See also
- KPageWidgetItem which describes the page.
Definition at line 85 of file kpagewidget.cpp.
◆ addPage() [2/2]
KPageWidgetItem * KPageWidget::addPage | ( | QWidget * | widget, |
const QString & | name | ||
) |
Adds a new top level page to the widget.
- Parameters
-
widget The widget of the page. name The name which is displayed in the navigation view.
- Returns
- The associated
- See also
- KPageWidgetItem.
Definition at line 80 of file kpagewidget.cpp.
◆ addSubPage() [1/2]
void KPageWidget::addSubPage | ( | KPageWidgetItem * | parent, |
KPageWidgetItem * | item | ||
) |
Inserts a new sub page in the widget.
- Parameters
-
parent The new page will be insert as child of this
- See also
- KPageWidgetItem.
- Parameters
-
item The
- See also
- KPageWidgetItem which describes the page.
Definition at line 105 of file kpagewidget.cpp.
◆ addSubPage() [2/2]
KPageWidgetItem * KPageWidget::addSubPage | ( | KPageWidgetItem * | parent, |
QWidget * | widget, | ||
const QString & | name | ||
) |
Inserts a new sub page in the widget.
- Parameters
-
parent The new page will be insert as child of this
- See also
- KPageWidgetItem.
- Parameters
-
widget The widget of the page. name The name which is displayed in the navigation view.
- Returns
- The associated
- See also
- KPageWidgetItem.
Definition at line 100 of file kpagewidget.cpp.
◆ currentPage()
KPageWidgetItem * KPageWidget::currentPage | ( | ) | const |
Returns the.
- See also
- KPageWidgetItem for the current page or 0 if there is no current page.
Definition at line 125 of file kpagewidget.cpp.
◆ currentPageChanged
|
signal |
This signal is emitted whenever the current page has changed.
- Parameters
-
item The new current page or 0 if no current page is available.
◆ insertPage() [1/2]
void KPageWidget::insertPage | ( | KPageWidgetItem * | before, |
KPageWidgetItem * | item | ||
) |
Inserts a new page in the widget.
- Parameters
-
before The new page will be insert before this
- See also
- KPageWidgetItem on the same level in hierarchy.
- Parameters
-
item The
- See also
- KPageWidgetItem which describes the page.
Definition at line 95 of file kpagewidget.cpp.
◆ insertPage() [2/2]
KPageWidgetItem * KPageWidget::insertPage | ( | KPageWidgetItem * | before, |
QWidget * | widget, | ||
const QString & | name | ||
) |
Inserts a new page in the widget.
- Parameters
-
before The new page will be insert before this
- See also
- KPageWidgetItem 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
- KPageWidgetItem.
Definition at line 90 of file kpagewidget.cpp.
◆ pageRemoved
|
signal |
This signal is emitted when a page is removed.
- Parameters
-
page The page which is removed
◆ pageToggled
|
signal |
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.
◆ removePage()
void KPageWidget::removePage | ( | KPageWidgetItem * | item | ) |
Removes the page associated with the given.
- See also
- KPageWidgetItem.
Definition at line 110 of file kpagewidget.cpp.
◆ setCurrentPage()
void KPageWidget::setCurrentPage | ( | KPageWidgetItem * | item | ) |
Sets the page which is associated with the given.
- See also
- KPageWidgetItem to be the current page and emits the currentPageChanged() signal.
Definition at line 116 of file kpagewidget.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.