Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/addressbooktests.cpp
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | void TestAddAddressesToSendBook(interfaces::Node &node) { | ||||
}; | }; | ||||
// We should start with the two addresses we added earlier and nothing else. | // We should start with the two addresses we added earlier and nothing else. | ||||
check_addbook_size(2); | check_addbook_size(2); | ||||
// Initialize relevant QT models. | // Initialize relevant QT models. | ||||
std::unique_ptr<const PlatformStyle> platformStyle( | std::unique_ptr<const PlatformStyle> platformStyle( | ||||
PlatformStyle::instantiate("other")); | PlatformStyle::instantiate("other")); | ||||
OptionsModel optionsModel(node); | OptionsModel optionsModel; | ||||
AddWallet(wallet); | AddWallet(wallet); | ||||
WalletModel walletModel(interfaces::MakeWallet(wallet), node, | WalletModel walletModel(interfaces::MakeWallet(wallet), node, | ||||
platformStyle.get(), &optionsModel); | platformStyle.get(), &optionsModel); | ||||
RemoveWallet(wallet); | RemoveWallet(wallet); | ||||
EditAddressDialog editAddressDialog(EditAddressDialog::NewSendingAddress); | EditAddressDialog editAddressDialog(EditAddressDialog::NewSendingAddress); | ||||
editAddressDialog.setModel(walletModel.getAddressTableModel()); | editAddressDialog.setModel(walletModel.getAddressTableModel()); | ||||
EditAddressAndSubmit( | EditAddressAndSubmit( | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |