Bitcoin Core 28.99.0
P2P Digital Currency
peertablesortproxy.h
Go to the documentation of this file.
1// Copyright (c) 2020-2021 The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#ifndef BITCOIN_QT_PEERTABLESORTPROXY_H
6#define BITCOIN_QT_PEERTABLESORTPROXY_H
7
8#include <QSortFilterProxyModel>
9
10QT_BEGIN_NAMESPACE
11class QModelIndex;
12QT_END_NAMESPACE
13
14class PeerTableSortProxy : public QSortFilterProxyModel
15{
16 Q_OBJECT
17
18public:
19 explicit PeerTableSortProxy(QObject* parent = nullptr);
20
21protected:
22 bool lessThan(const QModelIndex& left_index, const QModelIndex& right_index) const override;
23};
24
25#endif // BITCOIN_QT_PEERTABLESORTPROXY_H
PeerTableSortProxy(QObject *parent=nullptr)
bool lessThan(const QModelIndex &left_index, const QModelIndex &right_index) const override