[qt] receive tab: bech32 address opt-in checkbox

When launched with -adresstype=legacy the checkbox will be hidden.
This commit is contained in:
Sjors Provoost
2018-01-16 20:11:40 +00:00
parent 0910cbe4ef
commit 63ac8907ce
8 changed files with 124 additions and 40 deletions

View File

@@ -8,6 +8,8 @@
#include <QAbstractTableModel>
#include <QStringList>
enum OutputType : int;
class AddressTablePriv;
class WalletModel;
@@ -61,7 +63,7 @@ public:
/* Add an address to the model.
Returns the added address on success, and an empty string otherwise.
*/
QString addRow(const QString &type, const QString &label, const QString &address);
QString addRow(const QString &type, const QString &label, const QString &address, const OutputType address_type);
/* Look up label for address in address book, if not found return empty string.
*/