parley
summarywordwidget.cpp
Go to the documentation of this file.
46 SummaryWordWidget::SummaryWordWidget(VocabularyFilter *model, KEduVocDocument *doc, QWidget *parent)
65 connect(wordTypeComboBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(wordTypeSelected(QString)));
166 m_wordTypeView->setCurrentIndex(m_wordTypeModel->index(entry->translation(translation)->wordType()));
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
QModelIndexList indexes() const
void setupUi(QWidget *widget)
void setCurrentIndex(const QModelIndex &index)
Definition: vocabularyfilter.h:26
Definition: vocabularymodel.h:36
Definition: vocabularymodel.h:34
void wordTypeSelected(const QString &wordTypeName)
Definition: summarywordwidget.cpp:218
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: readonlycontainermodel.cpp:49
virtual void setVisible(bool visible)
SummaryWordWidget(VocabularyFilter *model, KEduVocDocument *doc, QWidget *parent=0)
Definition: summarywordwidget.cpp:46
Definition: vocabularymodel.h:40
bool isValid() const
static int columnType(int column)
Returns the type of the column specified.
Definition: vocabularymodel.cpp:315
virtual QVariant data(const QModelIndex &index, int role) const =0
void clearMapping()
void setItemDelegate(QAbstractItemDelegate *delegate)
Definition: vocabularymodel.h:39
Definition: vocabularymodel.h:41
void setColumnHidden(int column, bool hide)
void setTranslation(KEduVocExpression *entry, int translation)
Sets the selected word (KEduVocExpression) from the vocabularyView.
Definition: summarywordwidget.cpp:68
void expandAll()
SummaryWordDelegate(QObject *parent=0)
Definition: summarywordwidget.cpp:188
void addMapping(QWidget *widget, int section)
const QAbstractItemModel * model() const
void setModel(QAbstractItemModel *model)
void setCurrentModelIndex(const QModelIndex &index)
virtual void setModel(QAbstractItemModel *model)
void setDocument(KEduVocDocument *doc)
Set the new source kvtml file.
Definition: readonlycontainermodel.cpp:43
int column() const
void setEditorData(QWidget *editor, const QModelIndex &index) const
Definition: summarywordwidget.cpp:192
QHeaderView * header() const
void slotDocumentChanged(KEduVocDocument *doc)
Called when a KEduVocDocument change happened.
Definition: summarywordwidget.cpp:99
void setRootIsDecorated(bool show)
void slotSelectionChanged(const QItemSelection &, const QItemSelection &)
Called when the selection changed in the vocabulary view.
Definition: summarywordwidget.cpp:126
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString toString() const
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.