mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-03 17:54:19 +02:00
[gui] Make proxy icon from statusbar clickable
Clicking on the proxy icon will open settings showing the network tab Create enum Tab in OptionsModel Use new connect syntax Use lambda for private slots
This commit is contained in:
@@ -170,6 +170,16 @@ void OptionsDialog::setModel(OptionsModel *_model)
|
||||
connect(ui->thirdPartyTxUrls, SIGNAL(textChanged(const QString &)), this, SLOT(showRestartWarning()));
|
||||
}
|
||||
|
||||
void OptionsDialog::setCurrentTab(OptionsDialog::Tab tab)
|
||||
{
|
||||
QWidget *tab_widget = nullptr;
|
||||
if (tab == OptionsDialog::Tab::TAB_NETWORK) tab_widget = ui->tabNetwork;
|
||||
if (tab == OptionsDialog::Tab::TAB_MAIN) tab_widget = ui->tabMain;
|
||||
if (tab_widget && ui->tabWidget->currentWidget() != tab_widget) {
|
||||
ui->tabWidget->setCurrentWidget(tab_widget);
|
||||
}
|
||||
}
|
||||
|
||||
void OptionsDialog::setMapper()
|
||||
{
|
||||
/* Main */
|
||||
|
||||
Reference in New Issue
Block a user