parley
vocabularydelegate.h
Go to the documentation of this file.
51 QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
54 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
69 bool helpEvent(QHelpEvent *event, QAbstractItemView *view, const QStyleOptionViewItem &option, const QModelIndex &index );
Model for the tree of containers (lessons, word types).
Definition: readonlycontainermodel.h:33
void setEditorData(QWidget *editor, const QModelIndex &index) const
Definition: vocabularydelegate.cpp:247
bool hasImage(const QModelIndex &index) const
Definition: vocabularydelegate.cpp:203
void setDocument(KEduVocDocument *doc)
Definition: vocabularydelegate.cpp:327
KEduVocContainer * rootContainer() const
Definition: vocabularydelegate.cpp:355
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: vocabularydelegate.cpp:227
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
Definition: vocabularydelegate.cpp:277
QString imageUrl(const QModelIndex &index) const
Definition: vocabularydelegate.cpp:215
virtual bool event(QEvent *e)
QString audioUrl(const QModelIndex &index) const
Definition: vocabularydelegate.cpp:208
WordTypeBasicModel(QObject *parent=0)
Definition: vocabularydelegate.cpp:350
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: vocabularydelegate.cpp:73
bool hasAudio(const QModelIndex &index) const
Definition: vocabularydelegate.cpp:198
void setTranslator(Translator *translator)
Sets the member variable m_translator to a Translator object.
Definition: vocabularydelegate.cpp:367
VocabularyDelegate(QObject *parent=0)
Definition: vocabularydelegate.cpp:40
QObject * parent() const
QPolygon imagePolygon(const QStyleOptionViewItem &option) const
Definition: vocabularydelegate.cpp:188
QPolygon audioPolygon(const QStyleOptionViewItem &option) const
Definition: vocabularydelegate.cpp:178
bool helpEvent(QHelpEvent *event, QAbstractItemView *view, const QStyleOptionViewItem &option, const QModelIndex &index)
Definition: vocabularydelegate.cpp:150
static int columnType(int column)
Definition: vocabularydelegate.cpp:222
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.