summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-06-19 12:54:22 +0200
committerAndras Timar <andras.timar@collabora.com>2024-06-29 19:00:55 +0200
commitff88be15e7b1f54f804efbf883c60e572f728ce1 (patch)
treef40a900d5452ba4c071c5fa2ae6082cf5b5a76e1 /vcl
parent3edf4f2438bec0137f6b14bf9e7bc679bfb18685 (diff)
tdf#159835 vcl: Notify when floating window toggled
Notify listeners using an `VclEventId::WindowToggleFloating` event when the floating mode was toggled in `DockingWindow::SetFloatingMode`. This will be used in upcoming commit Change-Id: I9a7e341e88d2de5f34e8f85ebada3ff2ebf6b47d Author: Michael Weghorn <m.weghorn@posteo.de> Date: Tue Jun 18 13:41:03 2024 +0200 tdf#159835 sfx2: Keep sidebar menu up to date to react to that toggling. Change-Id: I5286ab727c30d4dd4bbc3cf5d42f19ff649b39f5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169195 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> (cherry picked from commit c2c6a5d32f8c536ab816630583f986860202c4a9) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169249 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/dockwin.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx
index 1a77aea1a44b..47271cd9820c 100644
--- a/vcl/source/window/dockwin.cxx
+++ b/vcl/source/window/dockwin.cxx
@@ -789,6 +789,8 @@ void DockingWindow::SetFloatingMode( bool bFloatMode )
if (bVisible)
Show();
+
+ CallEventListeners(VclEventId::WindowToggleFloating);
}
void DockingWindow::SetFloatStyle( WinBits nStyle )