summaryrefslogtreecommitdiff
path: root/sw/source/ui/config/optpage.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-05-20 10:29:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-05-20 15:32:38 +0200
commite292aa04980d0eac776619c9d37812ebff0a333c (patch)
tree8fe3d6734d72803085c5862301ad4c23bbca45b1 /sw/source/ui/config/optpage.cxx
parentf180554caf7d6088d3fc0da805f5c195f8972e6b (diff)
use toggle instead of click for CheckButton
Change-Id: I6a80946481ee6fc40b2ee207a64287d1a5f96110 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115864 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/config/optpage.cxx')
-rw-r--r--sw/source/ui/config/optpage.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx
index 9bd987be67e5..5db1c92b304c 100644
--- a/sw/source/ui/config/optpage.cxx
+++ b/sw/source/ui/config/optpage.cxx
@@ -1028,10 +1028,10 @@ SwTableOptionsTabPage::SwTableOptionsTabPage(weld::Container* pPage, weld::Dialo
, m_xFixPropRB(m_xBuilder->weld_radio_button("fixprop"))
, m_xVarRB(m_xBuilder->weld_radio_button("var"))
{
- Link<weld::Button&,void> aLnk(LINK(this, SwTableOptionsTabPage, CheckBoxHdl));
- m_xNumFormattingCB->connect_clicked(aLnk);
- m_xNumFormatFormattingCB->connect_clicked(aLnk);
- m_xHeaderCB->connect_clicked(aLnk);
+ Link<weld::ToggleButton&,void> aLnk(LINK(this, SwTableOptionsTabPage, CheckBoxHdl));
+ m_xNumFormattingCB->connect_toggled(aLnk);
+ m_xNumFormatFormattingCB->connect_toggled(aLnk);
+ m_xHeaderCB->connect_toggled(aLnk);
}
SwTableOptionsTabPage::~SwTableOptionsTabPage()
@@ -1195,7 +1195,7 @@ void SwTableOptionsTabPage::Reset( const SfxItemSet* rSet)
CheckBoxHdl(*m_xHeaderCB);
}
-IMPL_LINK_NOARG(SwTableOptionsTabPage, CheckBoxHdl, weld::Button&, void)
+IMPL_LINK_NOARG(SwTableOptionsTabPage, CheckBoxHdl, weld::ToggleButton&, void)
{
m_xNumFormatFormattingCB->set_sensitive(m_xNumFormattingCB->get_active());
m_xNumAlignmentCB->set_sensitive(m_xNumFormattingCB->get_active());