lokalize
#include <glossary.h>

Public Types | |
| enum | Columns { ID = 0, English, Target, SubjectField, GlossaryModelColumnCount } |
Public Slots | |
| void | forceReset () |
Public Member Functions | |
| GlossaryModel (QObject *parent) | |
| ~GlossaryModel () | |
| QByteArray | appendRow (const QString &_english, const QString &_target) |
| bool | canFetchMore (const QModelIndex &parent) const |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| QVariant | data (const QModelIndex &, int role=Qt::DisplayRole) const |
| void | fetchMore (const QModelIndex &parent) |
| QVariant | headerData (int section, Qt::Orientation, int role=Qt::DisplayRole) const |
| bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
Detailed Description
MVC wrapper around Glossary.
Definition at line 180 of file glossary.h.
Member Enumeration Documentation
| Enumerator | |
|---|---|
| ID | |
| English | |
| Target | |
| SubjectField | |
| GlossaryModelColumnCount | |
Definition at line 185 of file glossary.h.
Constructor & Destructor Documentation
| GlossaryModel::GlossaryModel | ( | QObject * | parent | ) |
Definition at line 188 of file glossary.cpp.
|
inline |
Definition at line 195 of file glossary.h.
Member Function Documentation
| QByteArray GlossaryModel::appendRow | ( | const QString & | _english, |
| const QString & | _target | ||
| ) |
Definition at line 746 of file glossary.cpp.
| bool GlossaryModel::canFetchMore | ( | const QModelIndex & | parent | ) | const |
parent.isValid() && m_glossary->size()!=m_visibleCount;
Definition at line 203 of file glossary.cpp.
| int GlossaryModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 268 of file glossary.cpp.
| QVariant GlossaryModel::data | ( | const QModelIndex & | index, |
| int | role = Qt::DisplayRole |
||
| ) | const |
Definition at line 238 of file glossary.cpp.
| void GlossaryModel::fetchMore | ( | const QModelIndex & | parent | ) |
Definition at line 208 of file glossary.cpp.
|
slot |
Definition at line 196 of file glossary.cpp.
| QVariant GlossaryModel::headerData | ( | int | section, |
| Qt::Orientation | , | ||
| int | role = Qt::DisplayRole |
||
| ) | const |
Definition at line 223 of file glossary.cpp.
| bool GlossaryModel::removeRows | ( | int | row, |
| int | count, | ||
| const QModelIndex & | parent = QModelIndex() |
||
| ) |
Definition at line 729 of file glossary.cpp.
| int GlossaryModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 216 of file glossary.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference