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:
Arjun
2019-07-23 15:00:57 -07:00
committed by adityapk00
parent f90796cb4f
commit bd1edf9f0c
7 changed files with 219 additions and 9 deletions

24
src/viewalladdresses.h Normal file
View 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