diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-05-20 16:53:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-05-21 10:49:57 +0200 |
commit | fa3266f9bf00b5858f36ae37e5720026a1ed40cc (patch) | |
tree | 09002444a63dd900893bbffd10793691204aae5f /formula/source | |
parent | d16ceda55b145cb31882bbf504924aa9103278aa (diff) |
use toggle instead of click for CheckButton
Change-Id: Iec5139cc2b739a624db7f10854a29e191b509286
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115889
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'formula/source')
-rw-r--r-- | formula/source/ui/dlg/formula.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx index 456d29e2de38..06044e8a875f 100644 --- a/formula/source/ui/dlg/formula.cxx +++ b/formula/source/ui/dlg/formula.cxx @@ -114,7 +114,7 @@ public: DECL_LINK( ModifyHdl, ParaWin&, void ); DECL_LINK( FxHdl, ParaWin&, void ); - DECL_LINK( MatrixHdl, weld::Button&, void ); + DECL_LINK( MatrixHdl, weld::ToggleButton&, void ); DECL_LINK( FormulaHdl, weld::TextView&, void); DECL_LINK( FormulaCursorHdl, weld::TextView&, void ); DECL_LINK( BtnHdl, weld::Button&, void ); @@ -295,7 +295,7 @@ FormulaDlg_Impl::FormulaDlg_Impl(weld::Dialog& rDialog, m_xWndFormResult->set_visible( _bSupportFunctionResult ); if ( _bSupportMatrix ) - m_xBtnMatrix->connect_clicked( LINK( this, FormulaDlg_Impl, MatrixHdl ) ); + m_xBtnMatrix->connect_toggled( LINK( this, FormulaDlg_Impl, MatrixHdl ) ); else m_xBtnMatrix->hide(); @@ -1655,7 +1655,7 @@ IMPL_LINK_NOARG( FormulaDlg_Impl, StructSelHdl, StructPage&, void) m_bStructUpdate = true; } -IMPL_LINK_NOARG( FormulaDlg_Impl, MatrixHdl, weld::Button&, void) +IMPL_LINK_NOARG( FormulaDlg_Impl, MatrixHdl, weld::ToggleButton&, void) { m_bUserMatrixFlag = true; UpdateValues(true); |