~ubuntu-branches/ubuntu/trusty/bibletime/trusty

« back to all changes in this revision

Viewing changes to src/backend/bookshelfmodel/btmodulenamefilterproxymodel.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Marsden
  • Date: 2010-01-10 22:21:36 UTC
  • mfrom: (1.3.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100110222136-905hza76230hperg
Tags: 2.5-1
New upstream version 2.5 (Closes: #564551).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*********
2
 
*
3
 
* In the name of the Father, and of the Son, and of the Holy Spirit.
4
 
*
5
 
* This file is part of BibleTime's source code, http://www.bibletime.info/.
6
 
*
7
 
* Copyright 1999-2009 by the BibleTime developers.
8
 
* The BibleTime source code is licensed under the GNU General Public License
9
 
* version 2.0.
10
 
*
11
 
**********/
12
 
 
13
 
#ifndef BTMODULENAMEFILTERPROXYMODEL_H
14
 
#define BTMODULENAMEFILTERPROXYMODEL_H
15
 
 
16
 
#include <QSortFilterProxyModel>
17
 
 
18
 
 
19
 
class BtModuleNameFilterProxyModel: public QSortFilterProxyModel {
20
 
        Q_OBJECT
21
 
    public:
22
 
        BtModuleNameFilterProxyModel(QObject *parent = 0);
23
 
        virtual ~BtModuleNameFilterProxyModel();
24
 
 
25
 
        inline bool enabled() const {
26
 
            return m_enabled;
27
 
        }
28
 
        void setEnabled(bool enable);
29
 
 
30
 
        virtual bool filterAcceptsRow(int row, const QModelIndex &parent) const;
31
 
 
32
 
    protected:
33
 
        QString m_filter;
34
 
        bool    m_enabled;
35
 
};
36
 
 
37
 
#endif // BTMODULENAMEFILTERPROXYMODEL_H