parley
KVTSortFilterModel Class Reference
#include <kvtsortfiltermodel.h>

Detailed Description
Definition at line 35 of file kvtsortfiltermodel.h.
Public Slots | |
| void | slotSearch (const QString &s) |
| void | restoreNativeOrder () |
| void | setLessonSelection (int lessonSelection) |
| void | slotCurrentLessonChanged (int) |
| void | slotLessonsInQueryChanged () |
Public Member Functions | |
| KVTSortFilterModel (QObject *parent=0) | |
| void | setSourceModel (KVTTableModel *sourceModel) |
| KVTTableModel * | sourceModel () const |
| bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const |
| void | setSearchRegExp (const QRegExp &filter) |
| void | setWordType (const QRegExp &wordType) |
Protected Member Functions | |
| bool | lessThan (const QModelIndex &left, const QModelIndex &right) const |
Constructor & Destructor Documentation
| KVTSortFilterModel::KVTSortFilterModel | ( | QObject * | parent = 0 |
) |
Definition at line 32 of file kvtsortfiltermodel.cpp.
Member Function Documentation
| void KVTSortFilterModel::setSourceModel | ( | KVTTableModel * | sourceModel | ) |
Definition at line 48 of file kvtsortfiltermodel.cpp.
| KVTTableModel * KVTSortFilterModel::sourceModel | ( | ) | const |
Definition at line 54 of file kvtsortfiltermodel.cpp.
| bool KVTSortFilterModel::filterAcceptsRow | ( | int | sourceRow, | |
| const QModelIndex & | sourceParent | |||
| ) | const |
Returns true if a row is to be displayed.
Determines if the row is displayed.
Respects the lesson setting and the search expression
- Parameters:
-
sourceRow sourceParent
- Returns:
Definition at line 163 of file kvtsortfiltermodel.cpp.
| void KVTSortFilterModel::setSearchRegExp | ( | const QRegExp & | filter | ) |
Definition at line 59 of file kvtsortfiltermodel.cpp.
| void KVTSortFilterModel::setWordType | ( | const QRegExp & | wordType | ) |
Definition at line 65 of file kvtsortfiltermodel.cpp.
| void KVTSortFilterModel::slotSearch | ( | const QString & | s | ) | [slot] |
React to changes in the search line.
- Parameters:
-
s String to search for
Definition at line 94 of file kvtsortfiltermodel.cpp.
| void KVTSortFilterModel::restoreNativeOrder | ( | ) | [slot] |
Put entries in the order they are in the file.
Definition at line 196 of file kvtsortfiltermodel.cpp.
| void KVTSortFilterModel::setLessonSelection | ( | int | lessonSelection | ) | [slot] |
Definition at line 204 of file kvtsortfiltermodel.cpp.
| void KVTSortFilterModel::slotCurrentLessonChanged | ( | int | ) | [slot] |
Definition at line 210 of file kvtsortfiltermodel.cpp.
| void KVTSortFilterModel::slotLessonsInQueryChanged | ( | ) | [slot] |
Definition at line 217 of file kvtsortfiltermodel.cpp.
| bool KVTSortFilterModel::lessThan | ( | const QModelIndex & | left, | |
| const QModelIndex & | right | |||
| ) | const [protected] |
Definition at line 186 of file kvtsortfiltermodel.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference