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

parley

  • sources
  • kde-4.12
  • kdeedu
  • parley
  • src
  • vocabulary
vocabularyfilter.h
Go to the documentation of this file.
1 /***************************************************************************
2 
3  Copyright 2007-2008 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
4 
5  ***************************************************************************/
6 
7 /***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef VOCABULARYFILTER_H
17 #define VOCABULARYFILTER_H
18 
19 #include <QSortFilterProxyModel>
20 
21 class KEduVocLesson;
22 class KEduVocExpression;
23 
24 namespace Editor {
25  class VocabularyModel;
26 
27 class VocabularyFilter : public QSortFilterProxyModel
28 {
29 Q_OBJECT
30 public:
31  VocabularyFilter(QObject *parent = 0);
32 
33  void setSourceModel(VocabularyModel* model);
34 
35  QModelIndex appendEntry(KEduVocExpression *expression = 0);
36  KEduVocLesson * lesson();
37 
38 public slots:
39  void setSearchString(const QString& expression);
40 
41 protected:
42  virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
43 
44 private:
45  virtual void setSourceModel(QAbstractItemModel *model) { Q_UNUSED(model) }
46 
47  VocabularyModel * m_model;
48  QString m_filterString;
49 };
50 }
51 
52 #endif
Editor::VocabularyFilter::setSourceModel
void setSourceModel(VocabularyModel *model)
Definition: vocabularyfilter.cpp:45
Editor::VocabularyModel
Definition: vocabularymodel.h:30
Editor::VocabularyFilter::VocabularyFilter
VocabularyFilter(QObject *parent=0)
Definition: vocabularyfilter.cpp:22
QObject
Editor::VocabularyFilter::lesson
KEduVocLesson * lesson()
Definition: vocabularyfilter.cpp:73
Editor::VocabularyFilter
Definition: vocabularyfilter.h:27
Editor::VocabularyFilter::filterAcceptsRow
virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
Definition: vocabularyfilter.cpp:57
QAbstractItemModel
Editor::VocabularyFilter::setSearchString
void setSearchString(const QString &expression)
Definition: vocabularyfilter.cpp:51
QSortFilterProxyModel
Editor::VocabularyFilter::appendEntry
QModelIndex appendEntry(KEduVocExpression *expression=0)
Definition: vocabularyfilter.cpp:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal