Debian Codegraph @

Source/Core/DolphinQt/GameList/ListProxyModel.h

raw symbols SCIP
1 // Copyright 2017 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include <QSortFilterProxyModel>
7
8 // This subclass of QSortFilterProxyModel allows the data to be filtered by the view.
9 class ListProxyModel final : public QSortFilterProxyModel
10 {
11 Q_OBJECT
12
13 public:
14 explicit ListProxyModel(QObject* parent = nullptr);
15 bool filterAcceptsRow(int source_row, const QModelIndex& source_parent) const override;
16
17 protected:
18 bool lessThan(const QModelIndex& left, const QModelIndex& right) const override;
19 };