diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-05-20 15:30:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-05-20 20:27:38 +0200 |
commit | bb166403ef1026e3665b2d60810c71955d7402c0 (patch) | |
tree | 8b53027c66feaf328ca2a15e2aaff6fa13fa5ec4 /uui | |
parent | 27c89d6db49855ffad5ec38bb4842f5d30b42a05 (diff) |
use toggle instead of click for CheckButton
Change-Id: I7196581a8b7c307d531f6995e1c24db746afdb26
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115883
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'uui')
-rw-r--r-- | uui/source/logindlg.cxx | 4 | ||||
-rw-r--r-- | uui/source/logindlg.hxx | 2 | ||||
-rw-r--r-- | uui/source/secmacrowarnings.cxx | 4 | ||||
-rw-r--r-- | uui/source/secmacrowarnings.hxx | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/uui/source/logindlg.cxx b/uui/source/logindlg.cxx index 5264c26f8366..262da5d7f74c 100644 --- a/uui/source/logindlg.cxx +++ b/uui/source/logindlg.cxx @@ -105,7 +105,7 @@ IMPL_LINK_NOARG(LoginDialog, OKHdl_Impl, weld::Button&, void) m_xDialog->response(RET_OK); } -IMPL_LINK_NOARG(LoginDialog, UseSysCredsHdl_Impl, weld::Button&, void) +IMPL_LINK_NOARG(LoginDialog, UseSysCredsHdl_Impl, weld::ToggleButton&, void) { EnableUseSysCredsControls_Impl( m_xUseSysCredsCB->get_active() ); } @@ -135,7 +135,7 @@ LoginDialog::LoginDialog(weld::Window* pParent, LoginFlags nFlags, m_xNameED->set_max_length( _MAX_PATH ); m_xOKBtn->connect_clicked( LINK( this, LoginDialog, OKHdl_Impl ) ); - m_xUseSysCredsCB->connect_clicked( LINK( this, LoginDialog, UseSysCredsHdl_Impl ) ); + m_xUseSysCredsCB->connect_toggled( LINK( this, LoginDialog, UseSysCredsHdl_Impl ) ); HideControls_Impl( nFlags ); } diff --git a/uui/source/logindlg.hxx b/uui/source/logindlg.hxx index 0b3d57f1d885..6f2e2de2de98 100644 --- a/uui/source/logindlg.hxx +++ b/uui/source/logindlg.hxx @@ -58,7 +58,7 @@ class LoginDialog : public weld::GenericDialogController void SetRequest(); DECL_LINK(OKHdl_Impl, weld::Button&, void); - DECL_LINK(UseSysCredsHdl_Impl, weld::Button&, void); + DECL_LINK(UseSysCredsHdl_Impl, weld::ToggleButton&, void); public: LoginDialog(weld::Window* pParent, LoginFlags nFlags, diff --git a/uui/source/secmacrowarnings.cxx b/uui/source/secmacrowarnings.cxx index 7c853cf2f8e0..10bd36a17a94 100644 --- a/uui/source/secmacrowarnings.cxx +++ b/uui/source/secmacrowarnings.cxx @@ -137,7 +137,7 @@ IMPL_LINK_NOARG(MacroWarning, DisableBtnHdl, weld::Button&, void) m_xDialog->response(RET_CANCEL); } -IMPL_LINK_NOARG(MacroWarning, AlwaysTrustCheckHdl, weld::Button&, void) +IMPL_LINK_NOARG(MacroWarning, AlwaysTrustCheckHdl, weld::ToggleButton&, void) { const bool bEnable = (mnActSecLevel < 2 || mxAlwaysTrustCB->get_active()); mxEnableBtn->set_sensitive(bEnable); @@ -154,7 +154,7 @@ void MacroWarning::InitControls() const SvtSecurityOptions aSecOption; if (!aSecOption.IsReadOnly(SvtSecurityOptions::EOption::MacroTrustedAuthors)) - mxAlwaysTrustCB->connect_clicked(LINK(this, MacroWarning, AlwaysTrustCheckHdl)); + mxAlwaysTrustCB->connect_toggled(LINK(this, MacroWarning, AlwaysTrustCheckHdl)); else mxAlwaysTrustCB->set_visible(false); diff --git a/uui/source/secmacrowarnings.hxx b/uui/source/secmacrowarnings.hxx index 71660fe7d0ff..1c0776e4bc52 100644 --- a/uui/source/secmacrowarnings.hxx +++ b/uui/source/secmacrowarnings.hxx @@ -48,7 +48,7 @@ private: DECL_LINK(ViewSignsBtnHdl, weld::Button&, void); DECL_LINK(EnableBtnHdl, weld::Button&, void); DECL_LINK(DisableBtnHdl, weld::Button&, void); - DECL_LINK(AlwaysTrustCheckHdl, weld::Button&, void); + DECL_LINK(AlwaysTrustCheckHdl, weld::ToggleButton&, void); DECL_STATIC_LINK(MacroWarning, InstallLOKNotifierHdl, void*, vcl::ILibreOfficeKitNotifier*); void InitControls(); |