From 6d5fcad576962e5950641f7e7b113a6ac6f397e5 Mon Sep 17 00:00:00 2001 From: Cristian Mircea Messel Date: Wed, 16 May 2018 23:05:09 +0300 Subject: [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 --- src/qt/optionsdialog.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/qt/optionsdialog.h') diff --git a/src/qt/optionsdialog.h b/src/qt/optionsdialog.h index 5aad484ce7..482f61658e 100644 --- a/src/qt/optionsdialog.h +++ b/src/qt/optionsdialog.h @@ -40,8 +40,14 @@ public: explicit OptionsDialog(QWidget *parent, bool enableWallet); ~OptionsDialog(); + enum Tab { + TAB_MAIN, + TAB_NETWORK, + }; + void setModel(OptionsModel *model); void setMapper(); + void setCurrentTab(OptionsDialog::Tab tab); private Q_SLOTS: /* set OK button state (enabled / disabled) */ -- cgit v1.2.3