diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2016-08-31 19:14:27 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2016-08-31 20:25:45 +0300 |
commit | 2decee2ccd9a4167949843da0db99edaebe6acd8 (patch) | |
tree | 00ef5a0b4b0c96fc2f215ed5166b5e27b814df03 /sfx2 | |
parent | 89a0365082e6ba9c255c2f7d69b537bb9936d848 (diff) |
tdf#101779 Allow multiline tooltips in template manager
Change-Id: Ia3dc45fc35aeeabfabc119bb84847c479ed32fda
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/thumbnailview.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx index a6a48e89ccaf..c0d4c3795f14 100644 --- a/sfx2/source/control/thumbnailview.cxx +++ b/sfx2/source/control/thumbnailview.cxx @@ -109,6 +109,19 @@ void ThumbnailView::MouseMove(const MouseEvent& rMEvt) SetQuickHelpText(aHelp); } +void ThumbnailView::RequestHelp( const HelpEvent& rHEvt ) +{ + if ( rHEvt.GetMode() & HelpEventMode::QUICK ) + { + // Force balloon mode, to be able to use line break. + HelpEvent aNewEvent( rHEvt.GetMousePosPixel(), HelpEventMode::BALLOON ); + Control::RequestHelp( aNewEvent ); + return; + } + + Control::RequestHelp( rHEvt ); +} + void ThumbnailView::AppendItem(ThumbnailViewItem *pItem) { if (maFilterFunc(pItem)) |