parley
lessonmodel.cpp
Go to the documentation of this file.
61 return i18nc("display of the name of the vocabulary collection", "Collection: %1", ContainerModel::data(index, role).toString());
83 void LessonModel::splitLesson(const QModelIndex& containerIndex, int entriesPerLesson, SplitLessonOrder order)
89 if (!static_cast<KEduVocContainer*>(containerIndex.internalPointer())->containerType() == KEduVocContainer::Lesson) {
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Change the name or checkbox of a lesson.
Definition: containermodel.cpp:112
virtual QVariant data(const QModelIndex &index, int role) const
Definition: containermodel.cpp:74
virtual QVariant data(const QModelIndex &index, int role) const
Definition: lessonmodel.cpp:55
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Definition: containermodel.cpp:144
KEduVocContainer::EnumContainerType containerType()
Definition: basiccontainermodel.cpp:185
KEduVocContainer * rootContainer() const
Definition: lessonmodel.cpp:35
Model for the tree of containers (lessons, word types).
Definition: containermodel.h:33
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Definition: lessonmodel.cpp:43
SplitLessonOrder
When splitting a lesson into smaller ones - how to sort the entries into lessons. ...
Definition: lessonmodel.h:31
void splitLesson(const QModelIndex &containerIndex, int entriesPerLesson, SplitLessonOrder order)
Divide a lesson into smaller ones.
Definition: lessonmodel.cpp:83
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Change the name or checkbox of a lesson.
Definition: lessonmodel.cpp:73
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.