summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-06-19 12:54:22 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-06-20 05:51:54 +0200
commitc2c6a5d32f8c536ab816630583f986860202c4a9 (patch)
tree9b624880060834164fe48e819e650f6b5c57ed66 /vcl
parent504e5501fce3f53d15b53f344c20e4404ff8f3db (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>
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 ed31cc356f44..a4c216b443af 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 )