Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletframe.cpp
Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Lines | |||||
void WalletFrame::usedReceivingAddresses() { | void WalletFrame::usedReceivingAddresses() { | ||||
WalletView *walletView = currentWalletView(); | WalletView *walletView = currentWalletView(); | ||||
if (walletView) { | if (walletView) { | ||||
walletView->usedReceivingAddresses(); | walletView->usedReceivingAddresses(); | ||||
} | } | ||||
} | } | ||||
WalletView *WalletFrame::currentWalletView() { | WalletView *WalletFrame::currentWalletView() const { | ||||
return qobject_cast<WalletView *>(walletStack->currentWidget()); | return qobject_cast<WalletView *>(walletStack->currentWidget()); | ||||
} | } | ||||
WalletModel *WalletFrame::currentWalletModel() const { | |||||
WalletView *wallet_view = currentWalletView(); | |||||
return wallet_view ? wallet_view->getWalletModel() : nullptr; | |||||
} | |||||
void WalletFrame::outOfSyncWarningClicked() { | void WalletFrame::outOfSyncWarningClicked() { | ||||
Q_EMIT requestedSyncWarningInfo(); | Q_EMIT requestedSyncWarningInfo(); | ||||
} | } |