sc/source/ui/dbgui/pfiltdlg.cxx | 4 ++-- sc/source/ui/dbgui/pvfundlg.cxx | 4 ++-- sc/source/ui/inc/pfiltdlg.hxx | 2 +- sc/source/ui/inc/pvfundlg.hxx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-)
New commits: commit 14d03bf37063fcf5f0641989b1d0c06c49fe75c2 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed May 19 16:06:31 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed May 19 21:37:16 2021 +0200 use toggle instead of click for CheckButton Change-Id: I26e2c0b77e95c99176daf830909824833453ce5c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115820 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/source/ui/dbgui/pfiltdlg.cxx b/sc/source/ui/dbgui/pfiltdlg.cxx index 750526290c70..1fe50d32a204 100644 --- a/sc/source/ui/dbgui/pfiltdlg.cxx +++ b/sc/source/ui/dbgui/pfiltdlg.cxx @@ -76,7 +76,7 @@ void ScPivotFilterDlg::Init( const SfxItemSet& rArgSet ) const ScQueryItem& rQueryItem = static_cast<const ScQueryItem&>( rArgSet.Get( nWhichQuery )); - m_xBtnCase->connect_clicked ( LINK( this, ScPivotFilterDlg, CheckBoxHdl ) ); + m_xBtnCase->connect_toggled( LINK( this, ScPivotFilterDlg, CheckBoxHdl ) ); m_xLbField1->connect_changed ( LINK( this, ScPivotFilterDlg, LbSelectHdl ) ); m_xLbField2->connect_changed ( LINK( this, ScPivotFilterDlg, LbSelectHdl ) ); @@ -463,7 +463,7 @@ IMPL_LINK( ScPivotFilterDlg, LbSelectHdl, weld::ComboBox&, rLb, void ) } } -IMPL_LINK(ScPivotFilterDlg, CheckBoxHdl, weld::Button&, rBox, void) +IMPL_LINK(ScPivotFilterDlg, CheckBoxHdl, weld::ToggleButton&, rBox, void) { // update the value lists when dealing with uppercase/lowercase diff --git a/sc/source/ui/dbgui/pvfundlg.cxx b/sc/source/ui/dbgui/pvfundlg.cxx index 935bfe82e13b..43f4e33274a1 100644 --- a/sc/source/ui/dbgui/pvfundlg.cxx +++ b/sc/source/ui/dbgui/pvfundlg.cxx @@ -793,7 +793,7 @@ void ScDPSubtotalOptDlg::Init( const ScDPNameVec& rDataFields, bool bEnableLayou // *** AUTO SHOW *** m_xCbShow->set_active( maLabelData.maShowInfo.IsEnabled ); - m_xCbShow->connect_clicked( LINK( this, ScDPSubtotalOptDlg, CheckHdl ) ); + m_xCbShow->connect_toggled( LINK( this, ScDPSubtotalOptDlg, CheckHdl ) ); m_xLbShowFrom->set_active(FromDataPilotFieldShowItemsMode(maLabelData.maShowInfo.ShowItemsMode)); tools::Long nCount = static_cast< tools::Long >( maLabelData.maShowInfo.ItemCount ); @@ -879,7 +879,7 @@ IMPL_LINK(ScDPSubtotalOptDlg, RadioClickHdl, weld::Button&, rBtn, void) m_xLbSortBy->set_sensitive(&rBtn != m_xRbSortMan.get()); } -IMPL_LINK(ScDPSubtotalOptDlg, CheckHdl, weld::Button&, rCBox, void) +IMPL_LINK(ScDPSubtotalOptDlg, CheckHdl, weld::ToggleButton&, rCBox, void) { if (&rCBox == m_xCbShow.get()) { diff --git a/sc/source/ui/inc/pfiltdlg.hxx b/sc/source/ui/inc/pfiltdlg.hxx index 00d5833628df..630515519f5c 100644 --- a/sc/source/ui/inc/pfiltdlg.hxx +++ b/sc/source/ui/inc/pfiltdlg.hxx @@ -87,7 +87,7 @@ private: // Handler: DECL_LINK( LbSelectHdl, weld::ComboBox&, void ); DECL_LINK( ValModifyHdl, weld::ComboBox&, void ); - DECL_LINK( CheckBoxHdl, weld::Button&, void ); + DECL_LINK( CheckBoxHdl, weld::ToggleButton&, void ); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/ui/inc/pvfundlg.hxx b/sc/source/ui/inc/pvfundlg.hxx index 6c75ee1a6f87..527999b609d3 100644 --- a/sc/source/ui/inc/pvfundlg.hxx +++ b/sc/source/ui/inc/pvfundlg.hxx @@ -152,7 +152,7 @@ private: sal_Int32 FindListBoxEntry( const weld::ComboBox& rLBox, std::u16string_view rEntry, sal_Int32 nStartPos ) const; DECL_LINK( RadioClickHdl, weld::Button&, void ); - DECL_LINK( CheckHdl, weld::Button&, void ); + DECL_LINK( CheckHdl, weld::ToggleButton&, void ); DECL_LINK( SelectHdl, weld::ComboBox&, void ); DECL_LINK( ButtonClicked, weld::Button&, void ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits