KDEUI
#include <kpagewidgetmodel.h>
Public Slots | |
void | setChecked (bool checked) |
void | setEnabled (bool) |
Signals | |
void | changed () |
void | toggled (bool checked) |
Public Member Functions | |
KPageWidgetItem (QWidget *widget) | |
KPageWidgetItem (QWidget *widget, const QString &name) | |
~KPageWidgetItem () | |
QString | header () const |
KIcon | icon () const |
bool | isCheckable () const |
bool | isChecked () const |
bool | isEnabled () const |
QString | name () const |
void | setCheckable (bool checkable) |
void | setHeader (const QString &header) |
void | setIcon (const KIcon &icon) |
void | setName (const QString &name) |
QWidget * | widget () const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Properties | |
bool | checkable |
bool | checked |
bool | enabled |
QString | header |
KIcon | icon |
QString | name |
Properties inherited from QObject | |
objectName | |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Detailed Description
KPageWidgetItem is used by KPageWidget and represents a page.
Example:
Definition at line 50 of file kpagewidgetmodel.h.
Constructor & Destructor Documentation
KPageWidgetItem::KPageWidgetItem | ( | QWidget * | widget | ) |
Creates a new page widget item.
- Parameters
-
widget The widget that is shown as page in the KPageWidget.
Hide the widget, otherwise when the widget has this KPageView as parent the widget is shown outside the QStackedWidget if the page was not selected ( and reparented ) yet.
Definition at line 53 of file kpagewidgetmodel.cpp.
Creates a new page widget item.
- Parameters
-
widget The widget that is shown as page in the KPageWidget. name The localized string that is show in the navigation view of the KPageWidget.
Hide the widget, otherwise when the widget has this KPageView as parent the widget is shown outside the QStackedWidget if the page was not selected ( and reparented ) yet.
Definition at line 67 of file kpagewidgetmodel.cpp.
KPageWidgetItem::~KPageWidgetItem | ( | ) |
Destroys the page widget item.
Definition at line 82 of file kpagewidgetmodel.cpp.
Member Function Documentation
|
signal |
This signal is emitted whenever the icon or header is changed.
QString KPageWidgetItem::header | ( | ) | const |
Returns the header of the page widget item.
KIcon KPageWidgetItem::icon | ( | ) | const |
Returns the icon of the page widget item.
bool KPageWidgetItem::isCheckable | ( | ) | const |
Returns whether the page widget item is checkable.
Definition at line 149 of file kpagewidgetmodel.cpp.
bool KPageWidgetItem::isChecked | ( | ) | const |
Returns whether the page widget item is checked.
Definition at line 162 of file kpagewidgetmodel.cpp.
bool KPageWidgetItem::isEnabled | ( | ) | const |
Returns whether the page widget item is enabled.
Definition at line 96 of file kpagewidgetmodel.cpp.
QString KPageWidgetItem::name | ( | ) | const |
Returns the name of the page widget item.
void KPageWidgetItem::setCheckable | ( | bool | checkable | ) |
Sets whether the page widget item is checkable in the view.
- Parameters
-
checkable True if the page widget is checkable, otherwise false.
Definition at line 142 of file kpagewidgetmodel.cpp.
|
slot |
Sets whether the page widget item is checked.
Definition at line 154 of file kpagewidgetmodel.cpp.
|
slot |
Sets whether the page widget item is enabled.
Definition at line 87 of file kpagewidgetmodel.cpp.
void KPageWidgetItem::setHeader | ( | const QString & | header | ) |
Sets the header of the page widget item.
If setHeader(QString()) is used, what is the default if the header does not got set explicit, then the defined name() will also be used for the header. If setHeader("") is used, the header will be hidden even if the KPageView::FaceType is something else then Tabbed.
- Parameters
-
header Header of the page widget item.
Definition at line 118 of file kpagewidgetmodel.cpp.
void KPageWidgetItem::setIcon | ( | const KIcon & | icon | ) |
Sets the icon of the page widget item.
- Parameters
-
icon Icon of the page widget item.
Definition at line 130 of file kpagewidgetmodel.cpp.
void KPageWidgetItem::setName | ( | const QString & | name | ) |
Sets the name of the item as shown in the navigation view of the page widget.
Definition at line 106 of file kpagewidgetmodel.cpp.
|
signal |
This signal is emitted whenever the user checks or unchecks the item of.
- See also
- setChecked() is called.
QWidget * KPageWidgetItem::widget | ( | ) | const |
Returns the widget of the page widget item.
Definition at line 101 of file kpagewidgetmodel.cpp.
Property Documentation
|
readwrite |
Definition at line 56 of file kpagewidgetmodel.h.
|
readwrite |
Definition at line 57 of file kpagewidgetmodel.h.
|
readwrite |
This property holds whether the item is enabled.
It dis-/enables both the widget and the item in the list-/treeview.
Definition at line 63 of file kpagewidgetmodel.h.
|
readwrite |
Definition at line 54 of file kpagewidgetmodel.h.
|
readwrite |
Definition at line 55 of file kpagewidgetmodel.h.
|
readwrite |
Definition at line 53 of file kpagewidgetmodel.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.