parley
lessonmodel.cpp
Go to the documentation of this file.
60 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) {
QObject * child(const char *objName, const char *inheritsClass, bool recursiveSearch) const
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Change the name or checkbox of a lesson.
Definition: lessonmodel.cpp:72
SplitLessonOrder
When splitting a lesson into smaller ones - how to sort the entries into lessons. ...
Definition: lessonmodel.h:30
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
void setBold(bool enable)
bool isValid() const
void endInsertRows()
Model for the tree of containers (lessons, word types).
Definition: containermodel.h:33
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Definition: lessonmodel.cpp:42
void splitLesson(const QModelIndex &containerIndex, int entriesPerLesson, SplitLessonOrder order)
Divide a lesson into smaller ones.
Definition: lessonmodel.cpp:83
void * internalPointer() const
virtual QVariant data(const QModelIndex &index, int role) const
Definition: containermodel.cpp:74
QModelIndex parent() const
void beginInsertRows(const QModelIndex &parent, int first, int last)
int column() const
virtual QVariant data(const QModelIndex &index, int role) const
Definition: lessonmodel.cpp:54
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Definition: containermodel.cpp:144
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QString toString() const
KEduVocContainer::EnumContainerType containerType()
Definition: readonlycontainermodel.cpp:179
typedef ItemFlags
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.