KWidgetsAddons
kpagewidgetmodel.cpp
124 << "KPageWidgetItem::setHeader() called with empty non-null string, which is deprecated. Use KPageWidgetItem::setHeaderVisible(false) instead.";
437 KPageWidgetItem *KPageWidgetModel::insertPage(KPageWidgetItem *before, QWidget *widget, const QString &name)
480 KPageWidgetItem *KPageWidgetModel::addSubPage(KPageWidgetItem *parent, QWidget *widget, const QString &name)
void removePage(KPageWidgetItem *item)
Removes the page associated with the given KPageWidgetItem.
Definition: kpagewidgetmodel.cpp:522
bool isNull() const const
void setChecked(bool checked)
Sets whether the page widget item is checked.
Definition: kpagewidgetmodel.cpp:161
DisplayRole
void beginRemoveRows(const QModelIndex &parent, int first, int last)
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void setHeaderVisible(bool visible)
Set whether the page should show the header title.
Definition: kpagewidgetmodel.cpp:95
QVariant fromValue(const T &value)
void * internalPointer() const const
Q_EMITQ_EMIT
void layoutChanged(const QList< QPersistentModelIndex > &parents, QAbstractItemModel::LayoutChangeHint hint)
void toggled(bool checked)
This signal is emitted whenever the user checks or unchecks the item of setChecked() is called.
void setCheckable(bool checkable)
Sets whether the page widget item is checkable in the view.
Definition: kpagewidgetmodel.cpp:149
int columnCount(const QModelIndex &parent=QModelIndex()) const override
These methods are reimplemented from QAbstractItemModel.
Definition: kpagewidgetmodel.cpp:273
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void toggled(KPageWidgetItem *page, bool checked)
This signal is emitted whenever a checkable page changes its state.
void beginInsertRows(const QModelIndex &parent, int first, int last)
bool isCheckable() const
Returns whether the page widget item is checkable.
Definition: kpagewidgetmodel.cpp:156
void setName(const QString &name)
Sets the name of the item as shown in the navigation view of the page widget.
Definition: kpagewidgetmodel.cpp:107
void setIcon(const QIcon &icon)
Sets the icon of the page widget item.
Definition: kpagewidgetmodel.cpp:137
KPageWidgetItem * addPage(QWidget *widget, const QString &name)
Adds a new top level page to the model.
Definition: kpagewidgetmodel.cpp:407
QModelIndex createIndex(int row, int column, void *ptr) const const
typedef ItemFlags
KPageWidgetItem * insertPage(KPageWidgetItem *before, QWidget *widget, const QString &name)
Inserts a new page in the model.
Definition: kpagewidgetmodel.cpp:437
KPageWidgetItem * item(const QModelIndex &index) const
Returns the KPageWidgetItem for a given index or a null pointer if the index is invalid.
Definition: kpagewidgetmodel.cpp:559
bool isEmpty() const const
Definition: kpagewidgetmodel.h:37
int toInt(bool *ok) const const
void changed()
This signal is emitted whenever the icon or header is changed.
void endInsertRows()
bool isHeaderVisible() const
Returns whether the page will show the header title.
Definition: kpagewidgetmodel.cpp:90
bool isValid() const const
void setEnabled(bool)
Sets whether the page widget item is enabled.
Definition: kpagewidgetmodel.cpp:76
int row() const const
T findChild(const QString &name, Qt::FindChildOptions options) const const
QWidget * widget() const
Returns the widget of the page widget item.
Definition: kpagewidgetmodel.cpp:102
void endRemoveRows()
QString name(StandardShortcut id)
void layoutAboutToBeChanged(const QList< QPersistentModelIndex > &parents, QAbstractItemModel::LayoutChangeHint hint)
Checked
Definition: kpagewidgetmodel.h:194
bool isEnabled() const
Returns whether the page widget item is enabled.
Definition: kpagewidgetmodel.cpp:85
KPageWidgetModel(QObject *parent=nullptr)
Creates a new page widget model.
Definition: kpagewidgetmodel.cpp:264
void setHeader(const QString &header)
Sets the header of the page widget item.
Definition: kpagewidgetmodel.cpp:119
QObject * parent() const const
KPageWidgetItem * addSubPage(KPageWidgetItem *parent, QWidget *widget, const QString &name)
Inserts a new sub page in the model.
Definition: kpagewidgetmodel.cpp:480
Q_D(Todo)
bool isChecked() const
Returns whether the page widget item is checked.
Definition: kpagewidgetmodel.cpp:169
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 04:01:57 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 04:01:57 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.