KWidgetsAddons
kpageview.cpp
225 void KPageViewPrivate::pageSelected(const QItemSelection &index, const QItemSelection &previous)
273 if (header.isNull()) { // TODO KF6 remove that ugly logic, see also doxy-comments in KPageWidgetItem::setHeader()
353 d->m_layoutChangedConnection = connect(d->model, &QAbstractItemModel::layoutChanged, this, [d]() {
356 d->m_dataChangedConnection = connect(d->model, &QAbstractItemModel::dataChanged, this, [d](const QModelIndex &topLeft, const QModelIndex &bottomRight) {
void append(const T &value)
@ Plain
No navigation view will be visible and only the first page of the model will be shown.
Definition: kpageview.h:72
typedef Alignment
bool isNull() const const
void setModel(QAbstractItemModel *model)
Sets the model of the page view.
Definition: kpageview.cpp:341
void setDefaultWidget(QWidget *widget)
Sets the widget which will be shown when a page is selected that has no own widget set.
Definition: kpageview.cpp:427
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
DisplayRole
virtual QAbstractItemView * createView()
Returns the navigation view, depending on the current face type.
Definition: kpageview.cpp:505
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
int count(const T &value) const const
QLayout * layout() const const
void layoutChanged(const QList< QPersistentModelIndex > &parents, QAbstractItemModel::LayoutChangeHint hint)
void setPageFooter(QWidget *footer)
Set a widget as the footer for this Page view.
Definition: kpageview.cpp:481
virtual bool showPageHeader() const
Returns whether the page header should be visible.
Definition: kpageview.cpp:531
SelectItems
@ Auto
Depending on the number of pages in the model, the Plain (one page), the List (several pages) or the ...
Definition: kpageview.h:67
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QModelIndex currentPage() const
Returns the index for the current page or an invalid index if no current page exists.
Definition: kpageview.cpp:399
QModelIndexList indexes() const const
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles)
KPageView(QWidget *parent=nullptr)
Creates a page view with given parent.
Definition: kpageview.cpp:327
void setPageHeader(QWidget *header)
Set a widget as the header for this Page view It will replace the standard page title.
Definition: kpageview.cpp:448
SingleSelection
bool isValid() const const
minimumSizeHint
QSize expandedTo(const QSize &otherSize) const const
void addWidget(QWidget *w)
virtual Qt::Alignment viewPosition() const
Returns the position where the navigation view should be located according to the page stack.
Definition: kpageview.cpp:543
QAbstractItemDelegate * itemDelegate() const
Returns the item delegate of the page view.
Definition: kpageview.cpp:417
QChar * data()
FaceType
This enum is used to decide which type of navigation view shall be used in the page view.
Definition: kpageview.h:60
void setFaceType(FaceType faceType)
Sets the face type of the page view.
Definition: kpageview.cpp:375
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 04:01:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 04:01:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.