1/*
2 * This file Copyright (C) Mnemosyne LLC
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2
6 * as published by the Free Software Foundation.
7 *
8 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
9 *
10 * $Id: tracker-model-filter.h 11092 2010-08-01 20:36:13Z charles $
11 */
12
13#ifndef QTR_TRACKER_MODEL_FILTER_H
14#define QTR_TRACKER_MODEL_FILTER_H
15
16#include <QSortFilterProxyModel>
17
18class TrackerModelFilter : public QSortFilterProxyModel
19{
20        Q_OBJECT
21
22    public:
23        TrackerModelFilter( QObject *parent = 0 );
24
25    public:
26        void setShowBackupTrackers( bool );
27        bool showBackupTrackers( ) const { return myShowBackups; }
28
29    protected:
30        bool filterAcceptsRow( int sourceRow, const QModelIndex&sourceParent ) const;
31
32    private:
33        bool myShowBackups;
34};
35
36#endif
37