diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-05-20 10:29:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-05-20 15:32:38 +0200 |
commit | e292aa04980d0eac776619c9d37812ebff0a333c (patch) | |
tree | 8fe3d6734d72803085c5862301ad4c23bbca45b1 /sw | |
parent | f180554caf7d6088d3fc0da805f5c195f8972e6b (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')
-rw-r--r-- | sw/source/ui/config/optpage.cxx | 10 | ||||
-rw-r--r-- | sw/source/ui/envelp/envlop1.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/inc/envlop.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/optpage.hxx | 2 |
4 files changed, 9 insertions, 9 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()); diff --git a/sw/source/ui/envelp/envlop1.cxx b/sw/source/ui/envelp/envlop1.cxx index d01848470f1d..121a523479c5 100644 --- a/sw/source/ui/envelp/envlop1.cxx +++ b/sw/source/ui/envelp/envlop1.cxx @@ -214,7 +214,7 @@ void SwEnvPage::Init(SwEnvDlg* pDialog) m_xDatabaseLB->connect_changed(LINK(this, SwEnvPage, DatabaseHdl)); m_xTableLB->connect_changed(LINK(this, SwEnvPage, DatabaseHdl)); m_xInsertBT->connect_clicked(LINK(this, SwEnvPage, FieldHdl)); - m_xSenderBox->connect_clicked(LINK(this, SwEnvPage, SenderHdl)); + m_xSenderBox->connect_toggled(LINK(this, SwEnvPage, SenderHdl)); SwDBData aData = m_pSh->GetDBData(); m_sActDBName = aData.sDataSource + OUStringChar(DB_DELIM) + aData.sCommand; @@ -256,7 +256,7 @@ IMPL_LINK_NOARG(SwEnvPage, FieldHdl, weld::Button&, void) m_xAddrEdit->select_region(nStartPos, nEndPos); } -IMPL_LINK_NOARG(SwEnvPage, SenderHdl, weld::Button&, void) +IMPL_LINK_NOARG(SwEnvPage, SenderHdl, weld::ToggleButton&, void) { const bool bEnable = m_xSenderBox->get_active(); GetParentSwEnvDlg()->aEnvItem.m_bSend = bEnable; diff --git a/sw/source/uibase/inc/envlop.hxx b/sw/source/uibase/inc/envlop.hxx index a851aa3880e1..ed23fb6b0f6a 100644 --- a/sw/source/uibase/inc/envlop.hxx +++ b/sw/source/uibase/inc/envlop.hxx @@ -98,7 +98,7 @@ class SwEnvPage : public SfxTabPage DECL_LINK(DatabaseHdl, weld::ComboBox&, void); DECL_LINK(FieldHdl, weld::Button&, void); - DECL_LINK(SenderHdl, weld::Button&, void); + DECL_LINK(SenderHdl, weld::ToggleButton&, void); void InitDatabaseBox(); diff --git a/sw/source/uibase/inc/optpage.hxx b/sw/source/uibase/inc/optpage.hxx index eebacf51ef53..ead7dbc40675 100644 --- a/sw/source/uibase/inc/optpage.hxx +++ b/sw/source/uibase/inc/optpage.hxx @@ -205,7 +205,7 @@ class SwTableOptionsTabPage : public SfxTabPage std::unique_ptr<weld::RadioButton> m_xFixPropRB; std::unique_ptr<weld::RadioButton> m_xVarRB; - DECL_LINK(CheckBoxHdl, weld::Button&, void); + DECL_LINK(CheckBoxHdl, weld::ToggleButton&, void); public: SwTableOptionsTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet); |