diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-05-19 15:16:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-05-19 21:36:02 +0200 |
commit | 6815067b75ab79c050d07693a9a1b7e306a4af1b (patch) | |
tree | e2896b92c1260274b5829b5429748a52beb382d6 /sw | |
parent | 3de15e365d120c92147f79dab082cca395abf75e (diff) |
use toggle instead of click for RadioButton
only listen for one toggle for the button grouping
Change-Id: I0c1866c25793ffce50bcf5f5a07fcdc98f64aacc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115818
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/config/optload.cxx | 5 | ||||
-rw-r--r-- | sw/source/uibase/inc/optload.hxx | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx index 05dafb14430a..6639024a8baf 100644 --- a/sw/source/ui/config/optload.cxx +++ b/sw/source/ui/config/optload.cxx @@ -131,8 +131,7 @@ SwLoadOptPage::SwLoadOptPage(weld::Container* pPage, weld::DialogController* pCo m_xUseCharUnit->hide(); } - Link<weld::Button&,void> aLink = LINK(this, SwLoadOptPage, StandardizedPageCountCheckHdl); - m_xShowStandardizedPageCount->connect_clicked(aLink); + m_xShowStandardizedPageCount->connect_toggled(LINK(this, SwLoadOptPage, StandardizedPageCountCheckHdl)); } SwLoadOptPage::~SwLoadOptPage() @@ -145,7 +144,7 @@ std::unique_ptr<SfxTabPage> SwLoadOptPage::Create( weld::Container* pPage, weld: return std::make_unique<SwLoadOptPage>(pPage, pController, *rAttrSet ); } -IMPL_LINK_NOARG(SwLoadOptPage, StandardizedPageCountCheckHdl, weld::Button&, void) +IMPL_LINK_NOARG(SwLoadOptPage, StandardizedPageCountCheckHdl, weld::ToggleButton&, void) { m_xStandardizedPageSizeNF->set_sensitive(m_xShowStandardizedPageCount->get_active()); } diff --git a/sw/source/uibase/inc/optload.hxx b/sw/source/uibase/inc/optload.hxx index 0bb020800765..4f8b8c23ca2b 100644 --- a/sw/source/uibase/inc/optload.hxx +++ b/sw/source/uibase/inc/optload.hxx @@ -77,7 +77,7 @@ private: std::unique_ptr<weld::SpinButton> m_xStandardizedPageSizeNF; DECL_LINK(MetricHdl, weld::ComboBox&, void); - DECL_LINK(StandardizedPageCountCheckHdl, weld::Button&, void); + DECL_LINK(StandardizedPageCountCheckHdl, weld::ToggleButton&, void); public: SwLoadOptPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet); |