MCPcopy Create free account
hub / github.com/ElementsProject/elements / setCurrentTab

Method setCurrentTab

src/qt/optionsdialog.cpp:225–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void OptionsDialog::setCurrentTab(OptionsDialog::Tab tab)
226{
227 QWidget *tab_widget = nullptr;
228 if (tab == OptionsDialog::Tab::TAB_NETWORK) tab_widget = ui->tabNetwork;
229 if (tab == OptionsDialog::Tab::TAB_MAIN) tab_widget = ui->tabMain;
230 if (tab_widget && ui->tabWidget->currentWidget() != tab_widget) {
231 ui->tabWidget->setCurrentWidget(tab_widget);
232 }
233}
234
235void OptionsDialog::setMapper()
236{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected