1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-04 22:11:23 +00:00
transmission/qt/TrackerModelFilter.h
Charles Kerr 070a7f2ffc
refactor: use snake_case field naming in qt client (#1262)
* refactor: use snake_case field naming in qt client

* fix: some missed symbols

* chore: make uncrustify happy

* fixup! refactor: use snake_case field naming in qt client
2020-05-27 16:53:12 -05:00

33 lines
640 B
C++

/*
* This file Copyright (C) 2010-2015 Mnemosyne LLC
*
* It may be used under the GNU GPL versions 2 or 3
* or any future license endorsed by Mnemosyne LLC.
*
*/
#pragma once
#include <QSortFilterProxyModel>
class TrackerModelFilter : public QSortFilterProxyModel
{
Q_OBJECT
public:
TrackerModelFilter(QObject* parent = nullptr);
void setShowBackupTrackers(bool);
bool showBackupTrackers() const
{
return show_backups_;
}
protected:
// QSortFilterProxyModel
virtual bool filterAcceptsRow(int source_row, QModelIndex const& source_parent) const;
private:
bool show_backups_ = {};
};