Files
SilentDragonXLite/src/viewalladdresses.h
onryo 3c2414028b Revert "Merge branch 'dev'"
This reverts commit 4a7dd7f959, reversing
changes made to a89a0cc1c6.
2024-01-06 16:27:48 +01:00

29 lines
743 B
C++

// Copyright 2019-2023 The Hush developers
// Released under the GPLv3
#ifndef VIEWALLADDRESSES_H
#define VIEWALLADDRESSES_H
#include "precompiled.h"
#include "controller.h"
class ViewAllAddressesModel : public QAbstractTableModel {
Q_OBJECT
public:
ViewAllAddressesModel(QTableView* parent, QList<QString> taddrs, Controller* rpc);
~ViewAllAddressesModel() = default;
int rowCount(const QModelIndex &parent) const;
int columnCount(const QModelIndex &parent) const;
QVariant data(const QModelIndex &index, int role) const;
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
private:
QList<QString> addresses;
QStringList headers;
Controller* rpc;
};
#endif