diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-09-19 08:05:29 -0300 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-19 12:54:50 +0000 |
commit | 9e06b6906745c16af92a5f3c40b01479f24dab22 (patch) | |
tree | 89136bda94fee85298d8b66c9f129ec63e363016 | |
parent | f0e3c542ac88459d946b4f9cb8af69889f918a03 (diff) |
fdo#65586: Add tooltips to Elements Dock in Math
Change-Id: I54b201834989752460e4b12bc3ac0afd69a9a5be
Reviewed-on: https://gerrit.libreoffice.org/6007
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | starmath/source/ElementsDockingWindow.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index b90f4fa21c25..7837e23bd672 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -300,6 +300,7 @@ void SmElementsControl::Paint(const Rectangle&) void SmElementsControl::MouseMove( const MouseEvent& rMouseEvent ) { mpCurrentElement = NULL; + OUString tooltip; if (Rectangle(Point(0, 0), GetOutputSizePixel()).IsInside(rMouseEvent.GetPosPixel())) { for (sal_uInt16 i = 0; i < maElementList.size() ; i++) @@ -312,6 +313,7 @@ void SmElementsControl::MouseMove( const MouseEvent& rMouseEvent ) { mpCurrentElement = element; Invalidate(); + tooltip = element->getText(); } } } @@ -320,6 +322,8 @@ void SmElementsControl::MouseMove( const MouseEvent& rMouseEvent ) { Control::MouseMove (rMouseEvent); } + + SetQuickHelpText(tooltip); } void SmElementsControl::MouseButtonDown(const MouseEvent& rMouseEvent) |