vcl/source/window/layout.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit f36e68a9085d02317997f64faedb685054d56589
Author: Michael Weghorn <[email protected]>
AuthorDate: Thu Oct 2 23:17:33 2025 +0200
Commit: Adolfo Jayme Barrientos <[email protected]>
CommitDate: Fri Oct 3 07:21:54 2025 +0200
tdf#168646 vcl: Forward unhandled tooltip event to base class
In VclDrawingArea::RequestHelp, if the drawing area specific
logic doesn't provide a tooltip text to show, call the base
class implementation, instead of returning without doing
anything.
This ensures that the extended tip logic implemented in
Window::RequestHelp is triggered as expected when
those are enabled.
Change-Id: I2918cc3377ec53e649d54cceaf0c9cb53effe58f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191801
Reviewed-by: Michael Weghorn <[email protected]>
Tested-by: Jenkins
(cherry picked from commit 9adbd5a71dca00de4d2323883a01ae4e7c02dc97)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191804
Reviewed-by: Adolfo Jayme Barrientos <[email protected]>
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index e273a09ea744..2845c422e827 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -3030,7 +3030,10 @@ void VclDrawingArea::RequestHelp(const HelpEvent&
rHelpEvent)
tools::Rectangle aHelpArea(aPos.X(), aPos.Y());
OUString sHelpTip = m_aQueryTooltipHdl.Call(aHelpArea);
if (sHelpTip.isEmpty())
+ {
+ Control::RequestHelp(rHelpEvent);
return;
+ }
Point aPt = OutputToScreenPixel(aHelpArea.TopLeft());
aHelpArea.SetLeft(aPt.X());
aHelpArea.SetTop(aPt.Y());