transmission/qt/tracker-model-filter.h

34 lines
679 B
C
Raw Normal View History

/*
* This file Copyright (C) 2010-2014 Mnemosyne LLC
*
* It may be used under the GNU Public License v2 or v3 licenses,
* 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