parley
ContainerModel Class Reference
#include <containermodel.h>

Detailed Description
Model for the tree of containers (lessons, word types).Definition at line 32 of file containermodel.h.
Signals | |
| void | documentModified () |
Public Member Functions | |
| QModelIndex | appendContainer (const QModelIndex &parent, const QString &containerName=QString()) |
| virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| ContainerModel (KEduVocContainer::EnumContainerType type, QObject *parent=0) | |
| virtual QVariant | data (const QModelIndex &index, int role) const |
| void | deleteContainer (const QModelIndex &containerIndex) |
| bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
| virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
| virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| QMimeData * | mimeData (const QModelIndexList &indexes) const |
| QStringList | mimeTypes () const |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
| Qt::DropActions | supportedDropActions () const |
Constructor & Destructor Documentation
| ContainerModel::ContainerModel | ( | KEduVocContainer::EnumContainerType | type, | |
| QObject * | parent = 0 | |||
| ) | [explicit] |
Definition at line 34 of file containermodel.cpp.
Member Function Documentation
| QModelIndex ContainerModel::appendContainer | ( | const QModelIndex & | parent, | |
| const QString & | containerName = QString() | |||
| ) |
Definition at line 42 of file containermodel.cpp.
| int ContainerModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Reimplemented from BasicContainerModel.
Reimplemented in StatisticsModel.
Definition at line 188 of file containermodel.cpp.
| QVariant ContainerModel::data | ( | const QModelIndex & | index, | |
| int | role | |||
| ) | const [virtual] |
Reimplemented from BasicContainerModel.
Reimplemented in StatisticsModel, and LeitnerModel.
Definition at line 67 of file containermodel.cpp.
| void ContainerModel::deleteContainer | ( | const QModelIndex & | containerIndex | ) |
Definition at line 200 of file containermodel.cpp.
| void ContainerModel::documentModified | ( | ) | [signal] |
emitted when the inPractice state or name of a lesson changed.
| bool ContainerModel::dropMimeData | ( | const QMimeData * | data, | |
| Qt::DropAction | action, | |||
| int | row, | |||
| int | column, | |||
| const QModelIndex & | parent | |||
| ) |
| Qt::ItemFlags ContainerModel::flags | ( | const QModelIndex & | index | ) | const [virtual] |
Reimplemented from BasicContainerModel.
Reimplemented in StatisticsModel, and LeitnerModel.
Definition at line 144 of file containermodel.cpp.
| QVariant ContainerModel::headerData | ( | int | section, | |
| Qt::Orientation | orientation, | |||
| int | role = Qt::DisplayRole | |||
| ) | const [virtual] |
| QMimeData * ContainerModel::mimeData | ( | const QModelIndexList & | indexes | ) | const |
Definition at line 226 of file containermodel.cpp.
| QStringList ContainerModel::mimeTypes | ( | ) | const |
Definition at line 220 of file containermodel.cpp.
| bool ContainerModel::setData | ( | const QModelIndex & | index, | |
| const QVariant & | value, | |||
| int | role = Qt::EditRole | |||
| ) |
Change the name or checkbox of a lesson.
- Parameters:
-
index which lesson value new name role
- Returns:
- bool
trueit worked
Reimplemented from QAbstractItemModel.
Definition at line 112 of file containermodel.cpp.
| Qt::DropActions ContainerModel::supportedDropActions | ( | ) | const |
Definition at line 215 of file containermodel.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference