okteta
AbstractModel Class Reference
#include <abstractmodel.h>

Detailed Description
Definition at line 32 of file abstractmodel.h.
Signals | |
| void | modifiableChanged (bool isModifiable) |
| void | readOnlyChanged (bool isReadOnly) |
| void | titleChanged (const QString &newTitel) |
Public Member Functions | |
| AbstractModel * | baseModel () const |
| template<typename T> | |
| T | findBaseModel () const |
| template<typename T> | |
| AbstractModel * | findBaseModelWithInterface () const |
| virtual bool | isModifiable () const |
| virtual bool | isReadOnly () const |
| virtual void | setReadOnly (bool isReadOnly) |
| virtual QString | title () const =0 |
| virtual | ~AbstractModel () |
Protected Member Functions | |
| AbstractModel (AbstractModel *baseModel=0) | |
| void | setBaseModel (AbstractModel *baseModel) |
Protected Attributes | |
| Private *const | d |
Constructor & Destructor Documentation
| AbstractModel::AbstractModel | ( | AbstractModel * | baseModel = 0 |
) | [protected] |
Definition at line 27 of file abstractmodel.cpp.
| AbstractModel::~AbstractModel | ( | ) | [virtual] |
Definition at line 38 of file abstractmodel.cpp.
Member Function Documentation
| AbstractModel * AbstractModel::baseModel | ( | ) | const |
Definition at line 33 of file abstractmodel.cpp.
| T AbstractModel::findBaseModel | ( | ) | const [inline] |
returns the first baseModel which is of type T, or null if none is found.
The search is started with the model itself
Definition at line 83 of file abstractmodel.h.
| AbstractModel * AbstractModel::findBaseModelWithInterface | ( | ) | const [inline] |
returns the first baseModel which is of type T, or null if none is found.
The search is started with the model itself
Definition at line 99 of file abstractmodel.h.
| bool AbstractModel::isModifiable | ( | ) | const [virtual] |
Default returns false.
Reimplemented in KByteArrayDocument, and KByteArrayDisplay.
Definition at line 31 of file abstractmodel.cpp.
| bool AbstractModel::isReadOnly | ( | ) | const [virtual] |
default returns true
Reimplemented in KByteArrayDocument, and KByteArrayDisplay.
Definition at line 32 of file abstractmodel.cpp.
| void AbstractModel::modifiableChanged | ( | bool | isModifiable | ) | [signal] |
| void AbstractModel::readOnlyChanged | ( | bool | isReadOnly | ) | [signal] |
| void AbstractModel::setBaseModel | ( | AbstractModel * | baseModel | ) | [protected] |
Definition at line 35 of file abstractmodel.cpp.
| void AbstractModel::setReadOnly | ( | bool | isReadOnly | ) | [virtual] |
default does nothing
Reimplemented in KByteArrayDocument, and KByteArrayDisplay.
Definition at line 36 of file abstractmodel.cpp.
| virtual QString AbstractModel::title | ( | ) | const [pure virtual] |
Implemented in DummyView, KByteArrayDocument, and KByteArrayDisplay.
| void AbstractModel::titleChanged | ( | const QString & | newTitel | ) | [signal] |
Member Data Documentation
Private* const AbstractModel::d [protected] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference