KDEUI
Go to the documentation of this file.
22 #ifndef KPAGEWIDGETMODEL_H
23 #define KPAGEWIDGETMODEL_H
53 Q_PROPERTY( QString
name READ
name WRITE setName )
55 Q_PROPERTY(
KIcon icon READ icon WRITE setIcon )
56 Q_PROPERTY(
bool checkable READ isCheckable WRITE setCheckable )
57 Q_PROPERTY(
bool checked READ isChecked WRITE setChecked )
63 Q_PROPERTY(
bool enabled READ isEnabled WRITE setEnabled)
96 void setName(
const QString &
name );
101 QString
name()
const;
113 void setHeader(
const QString &
header );
124 void setIcon(
const KIcon &icon );
136 void setCheckable(
bool checkable );
141 bool isCheckable()
const;
146 bool isChecked()
const;
151 bool isEnabled()
const;
157 void setEnabled(
bool);
162 void setChecked(
bool checked );
182 class KPageWidgetModelPrivate;
273 virtual int columnCount(
const QModelIndex &parent = QModelIndex() )
const;
274 virtual QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const;
275 virtual bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole );
276 virtual Qt::ItemFlags flags(
const QModelIndex &index )
const;
277 virtual QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex() )
const;
278 virtual QModelIndex parent(
const QModelIndex &index )
const;
279 virtual int rowCount(
const QModelIndex &parent = QModelIndex() )
const;
300 Q_PRIVATE_SLOT(d_func(),
void _k_itemChanged())
301 Q_PRIVATE_SLOT(d_func(),
void _k_itemToggled(
bool))
A wrapper around QIcon that provides KDE icon features.
A base class for a model used by KPageView.
void toggled(bool checked)
This signal is emitted whenever the user checks or unchecks the item of.
void toggled(KPageWidgetItem *page, bool checked)
This signal is emitted whenever a checkable page changes its state.
KPageWidgetItem is used by KPageWidget and represents a page.
void changed()
This signal is emitted whenever the icon or header is changed.
const char * name(StandardAction id)
This will return the internal name of a given standard action.
This page model is used by.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by
doxygen 1.8.20 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.