@@ -145,7 +145,7 @@ void WalletModel::updateWatchOnlyFlag(bool fHaveWatchonly)
145
145
Q_EMIT notifyWatchonlyChanged (fHaveWatchonly );
146
146
}
147
147
148
- bool WalletModel::validateAddress (const QString & address)
148
+ bool WalletModel::validateAddress (const QString& address) const
149
149
{
150
150
return IsValidDestinationString (address.toStdString ());
151
151
}
@@ -284,22 +284,22 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(WalletModelTransaction &tran
284
284
return SendCoinsReturn (OK);
285
285
}
286
286
287
- OptionsModel * WalletModel::getOptionsModel ()
287
+ OptionsModel* WalletModel::getOptionsModel () const
288
288
{
289
289
return optionsModel;
290
290
}
291
291
292
- AddressTableModel * WalletModel::getAddressTableModel ()
292
+ AddressTableModel* WalletModel::getAddressTableModel () const
293
293
{
294
294
return addressTableModel;
295
295
}
296
296
297
- TransactionTableModel * WalletModel::getTransactionTableModel ()
297
+ TransactionTableModel* WalletModel::getTransactionTableModel () const
298
298
{
299
299
return transactionTableModel;
300
300
}
301
301
302
- RecentRequestsTableModel * WalletModel::getRecentRequestsTableModel ()
302
+ RecentRequestsTableModel* WalletModel::getRecentRequestsTableModel () const
303
303
{
304
304
return recentRequestsTableModel;
305
305
}
@@ -557,7 +557,7 @@ bool WalletModel::bumpFee(uint256 hash, uint256& new_hash)
557
557
return true ;
558
558
}
559
559
560
- bool WalletModel::displayAddress (std::string sAddress )
560
+ bool WalletModel::displayAddress (std::string sAddress ) const
561
561
{
562
562
CTxDestination dest = DecodeDestination (sAddress );
563
563
bool res = false ;
@@ -585,7 +585,7 @@ QString WalletModel::getDisplayName() const
585
585
return name.isEmpty () ? " [" +tr (" default wallet" )+" ]" : name;
586
586
}
587
587
588
- bool WalletModel::isMultiwallet ()
588
+ bool WalletModel::isMultiwallet () const
589
589
{
590
590
return m_node.walletLoader ().getWallets ().size () > 1 ;
591
591
}
0 commit comments