danicoinwallet/src/gui/SortedTransactionsModel.h

29 lines
620 B
C
Raw Normal View History

2015-04-29 17:03:08 +00:00
// Copyright (c) 2011-2015 The Cryptonote developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#include <QSortFilterProxyModel>
namespace WalletGui {
class SortedTransactionsModel : public QSortFilterProxyModel {
Q_OBJECT
Q_DISABLE_COPY(SortedTransactionsModel)
public:
static SortedTransactionsModel& instance();
protected:
bool lessThan(const QModelIndex& _left, const QModelIndex& _right) const Q_DECL_OVERRIDE;
private:
SortedTransactionsModel();
~SortedTransactionsModel();
};
}