| 1335 | #endif // ENABLE_WALLET |
| 1336 | |
| 1337 | void BitcoinGUI::updateProxyIcon() |
| 1338 | { |
| 1339 | std::string ip_port; |
| 1340 | bool proxy_enabled = clientModel->getProxyInfo(ip_port); |
| 1341 | |
| 1342 | if (proxy_enabled) { |
| 1343 | if (!GUIUtil::HasPixmap(labelProxyIcon)) { |
| 1344 | QString ip_port_q = QString::fromStdString(ip_port); |
| 1345 | labelProxyIcon->setThemedPixmap((":/icons/proxy"), STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE); |
| 1346 | labelProxyIcon->setToolTip(tr("Proxy is <b>enabled</b>: %1").arg(ip_port_q)); |
| 1347 | } else { |
| 1348 | labelProxyIcon->show(); |
| 1349 | } |
| 1350 | } else { |
| 1351 | labelProxyIcon->hide(); |
| 1352 | } |
| 1353 | } |
| 1354 | |
| 1355 | void BitcoinGUI::updateWindowTitle() |
| 1356 | { |
nothing calls this directly
no test coverage detected