transmission/qt/tracker-model-filter.h

34 lines
665 B
C
Raw Normal View History

/*
* This file Copyright (C) 2010-2014 Mnemosyne LLC
*
* It may be used under the GNU GPL versions 2 or 3
* or any future license endorsed by Mnemosyne LLC.
*
* $Id$
*/
#ifndef QTR_TRACKER_MODEL_FILTER_H
#define QTR_TRACKER_MODEL_FILTER_H
#include <QSortFilterProxyModel>
class TrackerModelFilter : public QSortFilterProxyModel
{
2013-09-14 22:45:04 +00:00
Q_OBJECT
2013-09-14 22:45:04 +00:00
public:
TrackerModelFilter (QObject *parent = 0);
2013-09-14 22:45:04 +00:00
public:
void setShowBackupTrackers (bool);
bool showBackupTrackers () const { return myShowBackups; }
2013-09-14 22:45:04 +00:00
protected:
bool filterAcceptsRow (int sourceRow, const QModelIndex&sourceParent) const;
2013-09-14 22:45:04 +00:00
private:
bool myShowBackups;
};
#endif