summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-05-19 14:37:10 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-05-19 18:23:21 +0200
commit7bce577cca9e6ca24879affa6398f8fda840d921 (patch)
tree9bafd6f261e85df09f595901e27a5c49c3745118 /sd
parent819b30e937d227d1458ecc22b09ef994ebe7e17e (diff)
use toggle instead of click for CheckButton
Change-Id: I0cbe6cd1b93557ceba535a835c4a199761ca5f00 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115812 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx7
-rw-r--r--sd/source/ui/inc/CustomAnimationPane.hxx1
2 files changed, 7 insertions, 1 deletions
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index 485d4de91e3d..2c7df6d9242a 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -182,7 +182,7 @@ void CustomAnimationPane::initialize()
mxPBMoveUp->connect_clicked( LINK( this, CustomAnimationPane, implClickHdl ) );
mxPBMoveDown->connect_clicked( LINK( this, CustomAnimationPane, implClickHdl ) );
mxPBPlay->connect_clicked( LINK( this, CustomAnimationPane, implClickHdl ) );
- mxCBAutoPreview->connect_clicked( LINK( this, CustomAnimationPane, implClickHdl ) );
+ mxCBAutoPreview->connect_toggled( LINK( this, CustomAnimationPane, implToggleHdl ) );
mxLBCategory->connect_changed( LINK(this, CustomAnimationPane, UpdateAnimationLB) );
mxMFStartDelay->connect_value_changed( LINK(this, CustomAnimationPane, DelayModifiedHdl) );
mxMFStartDelay->connect_focus_out(LINK( this, CustomAnimationPane, DelayLoseFocusHdl));
@@ -2241,6 +2241,11 @@ sal_Int32 CustomAnimationPane::fillAnimationLB( bool bHasText )
return nFirstEffect;
}
+IMPL_LINK(CustomAnimationPane, implToggleHdl, weld::ToggleButton&, rBtn, void)
+{
+ implControlHdl(&rBtn);
+}
+
IMPL_LINK(CustomAnimationPane, implClickHdl, weld::Button&, rBtn, void)
{
implControlHdl(&rBtn);
diff --git a/sd/source/ui/inc/CustomAnimationPane.hxx b/sd/source/ui/inc/CustomAnimationPane.hxx
index ff6fa75609e1..80d2aa4eef10 100644
--- a/sd/source/ui/inc/CustomAnimationPane.hxx
+++ b/sd/source/ui/inc/CustomAnimationPane.hxx
@@ -102,6 +102,7 @@ private:
DECL_LINK( implControlListBoxHdl, weld::ComboBox&, void );
DECL_LINK( implClickHdl, weld::Button&, void );
+ DECL_LINK( implToggleHdl, weld::ToggleButton&, void );
DECL_LINK( implPropertyHdl, LinkParamNone*, void );
DECL_LINK( EventMultiplexerListener, tools::EventMultiplexerEvent&, void );
DECL_LINK( lateInitCallback, Timer *, void );