Fix T-addresses not showing up in dropdown (#169)
* Add upto 20 addresses to the taddr dropdown * View All Addresses dialog box * Add balances to view all addresses * Add export all keys * Add translations + copy address
This commit is contained in:
24
src/viewalladdresses.h
Normal file
24
src/viewalladdresses.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef VIEWALLADDRESSES_H
|
||||
#define VIEWALLADDRESSES_H
|
||||
|
||||
#include "precompiled.h"
|
||||
#include "rpc.h"
|
||||
|
||||
class ViewAllAddressesModel : public QAbstractTableModel {
|
||||
|
||||
public:
|
||||
ViewAllAddressesModel(QTableView* parent, QList<QString> taddrs, RPC* 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;
|
||||
RPC* rpc;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user