KWidgetsAddons
kpagewidget.cpp
18void KPageWidgetPrivate::slotCurrentPageChanged(const QModelIndex ¤t, const QModelIndex &before)
38 connect(this, &KPageView::currentPageChanged, this, [d](const QModelIndex ¤t, const QModelIndex &before) {
74KPageWidgetItem *KPageWidget::insertPage(KPageWidgetItem *before, QWidget *widget, const QString &name)
88KPageWidgetItem *KPageWidget::addSubPage(KPageWidgetItem *parent, QWidget *widget, const QString &name)
106 Q_EMIT pageRemoved(item); // Q_EMIT signal before we remove it, because the item will be deleted in the model
QModelIndex currentPage() const
Returns the index for the current page or an invalid index if no current page exists.
Definition kpageview.cpp:784
void currentPageChanged(const QModelIndex ¤t, const QModelIndex &previous)
This signal is emitted whenever the current page changes.
KPageWidgetItem is used by KPageWidget and represents a page.
Definition kpagewidgetmodel.h:39
This page model is used by KPageWidget to provide a hierarchical layout of pages.
Definition kpagewidgetmodel.h:219
void toggled(KPageWidgetItem *page, bool checked)
This signal is emitted whenever a checkable page changes its state.
KPageWidgetItem * addSubPage(KPageWidgetItem *parent, QWidget *widget, const QString &name)
Inserts a new sub page in the widget.
Definition kpagewidget.cpp:88
void removePage(KPageWidgetItem *item)
Removes the page associated with the given KPageWidgetItem.
Definition kpagewidget.cpp:102
KPageWidgetItem * currentPage() const
Returns the KPageWidgetItem for the current page or a null pointer if there is no current page.
Definition kpagewidget.cpp:122
void pageToggled(KPageWidgetItem *page, bool checked)
This signal is emitted whenever a checkable page changes its state.
KPageWidgetItem * insertPage(KPageWidgetItem *before, QWidget *widget, const QString &name)
Inserts a new page in the widget.
Definition kpagewidget.cpp:74
KPageWidgetItem * addPage(QWidget *widget, const QString &name)
Adds a new top level page to the widget.
Definition kpagewidget.cpp:60
void setCurrentPage(KPageWidgetItem *item)
Sets the page which is associated with the given KPageWidgetItem to be the current page and emits the...
Definition kpagewidget.cpp:110
void pageRemoved(KPageWidgetItem *page)
This signal is emitted when a page is removed.
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const=0
bool isValid() const const
const QAbstractItemModel * model() const const
Q_EMITQ_EMIT
QObject * parent() const const
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.