Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.cpp
Show First 20 Lines • Show All 694 Lines • ▼ Show 20 Lines | if (m_wallet_selector->count() == 2) { | ||||
m_wallet_selector_action->setVisible(true); | m_wallet_selector_action->setVisible(true); | ||||
} | } | ||||
} | } | ||||
void BitcoinGUI::removeWallet(WalletModel *walletModel) { | void BitcoinGUI::removeWallet(WalletModel *walletModel) { | ||||
if (!walletFrame) { | if (!walletFrame) { | ||||
return; | return; | ||||
} | } | ||||
labelWalletHDStatusIcon->hide(); | |||||
labelWalletEncryptionIcon->hide(); | |||||
int index = m_wallet_selector->findData(QVariant::fromValue(walletModel)); | int index = m_wallet_selector->findData(QVariant::fromValue(walletModel)); | ||||
m_wallet_selector->removeItem(index); | m_wallet_selector->removeItem(index); | ||||
if (m_wallet_selector->count() == 0) { | if (m_wallet_selector->count() == 0) { | ||||
setWalletActionsEnabled(false); | setWalletActionsEnabled(false); | ||||
} else if (m_wallet_selector->count() == 1) { | } else if (m_wallet_selector->count() == 1) { | ||||
m_wallet_selector_label_action->setVisible(false); | m_wallet_selector_label_action->setVisible(false); | ||||
m_wallet_selector_action->setVisible(false); | m_wallet_selector_action->setVisible(false); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 582 Lines • ▼ Show 20 Lines | labelWalletHDStatusIcon->setPixmap( | ||||
: hdEnabled ? ":/icons/hd_enabled" | : hdEnabled ? ":/icons/hd_enabled" | ||||
: ":/icons/hd_disabled") | : ":/icons/hd_disabled") | ||||
.pixmap(STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE)); | .pixmap(STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE)); | ||||
labelWalletHDStatusIcon->setToolTip( | labelWalletHDStatusIcon->setToolTip( | ||||
privkeyDisabled | privkeyDisabled | ||||
? tr("Private key <b>disabled</b>") | ? tr("Private key <b>disabled</b>") | ||||
: hdEnabled ? tr("HD key generation is <b>enabled</b>") | : hdEnabled ? tr("HD key generation is <b>enabled</b>") | ||||
: tr("HD key generation is <b>disabled</b>")); | : tr("HD key generation is <b>disabled</b>")); | ||||
labelWalletHDStatusIcon->show(); | |||||
// eventually disable the QLabel to set its opacity to 50% | // eventually disable the QLabel to set its opacity to 50% | ||||
labelWalletHDStatusIcon->setEnabled(hdEnabled); | labelWalletHDStatusIcon->setEnabled(hdEnabled); | ||||
} | } | ||||
void BitcoinGUI::setEncryptionStatus(int status) { | void BitcoinGUI::setEncryptionStatus(int status) { | ||||
switch (status) { | switch (status) { | ||||
case WalletModel::Unencrypted: | case WalletModel::Unencrypted: | ||||
labelWalletEncryptionIcon->hide(); | labelWalletEncryptionIcon->hide(); | ||||
▲ Show 20 Lines • Show All 246 Lines • Show Last 20 Lines |