Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.cpp
Show First 20 Lines • Show All 1,375 Lines • ▼ Show 20 Lines | if (walletFrame && walletFrame->handlePaymentRequest(recipient)) { | ||||
return true; | return true; | ||||
} | } | ||||
return false; | return false; | ||||
} | } | ||||
void BitcoinGUI::setHDStatus(bool privkeyDisabled, int hdEnabled) { | void BitcoinGUI::setHDStatus(bool privkeyDisabled, int hdEnabled) { | ||||
labelWalletHDStatusIcon->setPixmap( | labelWalletHDStatusIcon->setPixmap( | ||||
platformStyle | platformStyle | ||||
->SingleColorIcon(privkeyDisabled | ->SingleColorIcon(privkeyDisabled ? ":/icons/eye" | ||||
? ":/icons/eye" | |||||
: 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(); | 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) { | ||||
▲ Show 20 Lines • Show All 260 Lines • Show Last 20 Lines |