• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

parley

KVTSortFilterModel Class Reference

#include <kvtsortfiltermodel.h>

Inheritance diagram for KVTSortFilterModel:

Inheritance graph
[legend]

List of all members.


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:
  • kvtsortfiltermodel.h
  • kvtsortfiltermodel.cpp

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal