KDEUI
kpagewidgetmodel.cpp
Go to the documentation of this file.
404KPageWidgetItem* KPageWidgetModel::insertPage( KPageWidgetItem *before, QWidget *widget, const QString &name )
445KPageWidgetItem* KPageWidgetModel::addSubPage( KPageWidgetItem *parent, QWidget *widget, const QString &name )
KPageWidgetItem is used by KPageWidget and represents a page.
Definition: kpagewidgetmodel.h:51
void setName(const QString &name)
Sets the name of the item as shown in the navigation view of the page widget.
Definition: kpagewidgetmodel.cpp:106
bool isEnabled() const
Returns whether the page widget item is enabled.
Definition: kpagewidgetmodel.cpp:96
void setChecked(bool checked)
Sets whether the page widget item is checked.
Definition: kpagewidgetmodel.cpp:154
void changed()
This signal is emitted whenever the icon or header is changed.
bool isCheckable() const
Returns whether the page widget item is checkable.
Definition: kpagewidgetmodel.cpp:149
void toggled(bool checked)
This signal is emitted whenever the user checks or unchecks the item of.
bool isChecked() const
Returns whether the page widget item is checked.
Definition: kpagewidgetmodel.cpp:162
QWidget * widget() const
Returns the widget of the page widget item.
Definition: kpagewidgetmodel.cpp:101
void setEnabled(bool)
Sets whether the page widget item is enabled.
Definition: kpagewidgetmodel.cpp:87
void setIcon(const KIcon &icon)
Sets the icon of the page widget item.
Definition: kpagewidgetmodel.cpp:130
void setCheckable(bool checkable)
Sets whether the page widget item is checkable in the view.
Definition: kpagewidgetmodel.cpp:142
void setHeader(const QString &header)
Sets the header of the page widget item.
Definition: kpagewidgetmodel.cpp:118
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: kpagewidgetmodel.cpp:268
KPageWidgetItem * insertPage(KPageWidgetItem *before, QWidget *widget, const QString &name)
Inserts a new page in the model.
Definition: kpagewidgetmodel.cpp:404
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: kpagewidgetmodel.cpp:362
KPageWidgetItem * addPage(QWidget *widget, const QString &name)
Adds a new top level page to the model.
Definition: kpagewidgetmodel.cpp:374
void removePage(KPageWidgetItem *item)
Removes the page associated with the given.
Definition: kpagewidgetmodel.cpp:485
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
These methods are reimplemented from QAbstractItemModel.
Definition: kpagewidgetmodel.cpp:263
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Definition: kpagewidgetmodel.cpp:315
KPageWidgetModel(QObject *parent=0)
Creates a new page widget model.
Definition: kpagewidgetmodel.cpp:254
KPageWidgetItem * item(const QModelIndex &index) const
Returns the.
Definition: kpagewidgetmodel.cpp:520
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: kpagewidgetmodel.cpp:332
void toggled(KPageWidgetItem *page, bool checked)
This signal is emitted whenever a checkable page changes its state.
virtual QModelIndex parent(const QModelIndex &index) const
Definition: kpagewidgetmodel.cpp:348
KPageWidgetItem * addSubPage(KPageWidgetItem *parent, QWidget *widget, const QString &name)
Inserts a new sub page in the model.
Definition: kpagewidgetmodel.cpp:445
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Definition: kpagewidgetmodel.cpp:292
const char header[]
QString indent(QString text, int spaces)
QString prefix()
const char * name(StandardAction id)
This will return the internal name of a given standard action.
Definition: kstandardaction.cpp:223
This file is part of the KDE documentation.
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
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.