KDEUI
kpagewidgetmodel.cpp
Go to the documentation of this file.
404 KPageWidgetItem* KPageWidgetModel::insertPage( KPageWidgetItem *before, QWidget *widget, const QString &name )
445 KPageWidgetItem* KPageWidgetModel::addSubPage( KPageWidgetItem *parent, QWidget *widget, const QString &name )
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Definition: kpagewidgetmodel.cpp:315
QString & append(QChar ch)
void changed()
This signal is emitted whenever the icon or header is changed.
void layoutChanged()
void setChecked(bool checked)
Sets whether the page widget item is checked.
Definition: kpagewidgetmodel.cpp:154
const char * name(StandardAction id)
This will return the internal name of a given standard action.
Definition: kstandardaction.cpp:223
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: kpagewidgetmodel.cpp:332
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: kpagewidgetmodel.cpp:362
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void setEnabled(bool)
Sets whether the page widget item is enabled.
Definition: kpagewidgetmodel.cpp:87
QString prefix()
void toggled(bool checked)
This signal is emitted whenever the user checks or unchecks the item of.
void setIcon(const KIcon &icon)
Sets the icon of the page widget item.
Definition: kpagewidgetmodel.cpp:130
void layoutAboutToBeChanged()
bool isValid() const
int toInt(bool *ok) const
void endInsertRows()
bool isEnabled() const
Returns whether the page widget item is enabled.
Definition: kpagewidgetmodel.cpp:96
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Definition: kpagewidgetmodel.cpp:292
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
These methods are reimplemented from QAbstractItemModel.
Definition: kpagewidgetmodel.cpp:263
void beginRemoveRows(const QModelIndex &parent, int first, int last)
int row() const
KPageWidgetItem * addSubPage(KPageWidgetItem *parent, QWidget *widget, const QString &name)
Inserts a new sub page in the model.
Definition: kpagewidgetmodel.cpp:445
void * internalPointer() const
bool isChecked() const
Returns whether the page widget item is checked.
Definition: kpagewidgetmodel.cpp:162
void removePage(KPageWidgetItem *item)
Removes the page associated with the given.
Definition: kpagewidgetmodel.cpp:485
QModelIndex createIndex(int row, int column, void *ptr) const
QWidget * widget() const
Returns the widget of the page widget item.
Definition: kpagewidgetmodel.cpp:101
KPageWidgetModel(QObject *parent=0)
Creates a new page widget model.
Definition: kpagewidgetmodel.cpp:254
QVariant fromValue(const T &value)
KPageWidgetItem * item(const QModelIndex &index) const
Returns the.
Definition: kpagewidgetmodel.cpp:520
QModelIndex child(int row, int column) const
void beginInsertRows(const QModelIndex &parent, int first, int last)
bool isCheckable() const
Returns whether the page widget item is checkable.
Definition: kpagewidgetmodel.cpp:149
KPageWidgetItem is used by KPageWidget and represents a page.
Definition: kpagewidgetmodel.h:50
void toggled(KPageWidgetItem *page, bool checked)
This signal is emitted whenever a checkable page changes its state.
void setHeader(const QString &header)
Sets the header of the page widget item.
Definition: kpagewidgetmodel.cpp:118
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
KPageWidgetItem * addPage(QWidget *widget, const QString &name)
Adds a new top level page to the model.
Definition: kpagewidgetmodel.cpp:374
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: kpagewidgetmodel.cpp:268
void endRemoveRows()
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
void setCheckable(bool checkable)
Sets whether the page widget item is checkable in the view.
Definition: kpagewidgetmodel.cpp:142
KPageWidgetItem * insertPage(KPageWidgetItem *before, QWidget *widget, const QString &name)
Inserts a new page in the model.
Definition: kpagewidgetmodel.cpp:404
typedef ItemFlags
T findChild(const QString &name) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.