diff options
-rw-r--r-- | include/vcl/help.hxx | 12 | ||||
-rw-r--r-- | vcl/source/app/help.cxx | 2 |
2 files changed, 6 insertions, 8 deletions
diff --git a/include/vcl/help.hxx b/include/vcl/help.hxx index 2c0ec962b459..055208b19842 100644 --- a/include/vcl/help.hxx +++ b/include/vcl/help.hxx @@ -41,18 +41,16 @@ enum class QuickHelpFlags Bottom = 0x0020, NoAutoPos = Left | Center | Right | Top | VCenter | Bottom, CtrlText = 0x0040, -/// force the existent tip window to be re-positioned, even if the previous incarnation has the same text. Applies to ShowBallon and ShowQuickHelp. - ForceReposition = 0x0080, /// no delay when opening the quick help. Applies to ShowBallon and ShowQuickHelp - NoDelay = 0x0100, + NoDelay = 0x0080, /// force balloon-style in ShowTip - TipStyleBalloon = 0x0200, - NoEvadePointer = 0x4000, - BiDiRtl = 0x8000, + TipStyleBalloon = 0x0100, + NoEvadePointer = 0x0200, + BiDiRtl = 0x0400, }; namespace o3tl { - template<> struct typed_flags<QuickHelpFlags> : is_typed_flags<QuickHelpFlags, 0xc3ff> {}; + template<> struct typed_flags<QuickHelpFlags> : is_typed_flags<QuickHelpFlags, 0x7ff> {}; } #define OOO_HELP_INDEX ".help:index" diff --git a/vcl/source/app/help.cxx b/vcl/source/app/help.cxx index cf3726b230e9..2c879c02dc8c 100644 --- a/vcl/source/app/help.cxx +++ b/vcl/source/app/help.cxx @@ -495,7 +495,7 @@ void ImplShowHelpWindow( vcl::Window* pParent, sal_uInt16 nHelpWinStyle, QuickHe else { bool const bTextChanged = rHelpText != pHelpWin->GetHelpText(); - if ( bTextChanged || ( nStyle & QuickHelpFlags::ForceReposition ) ) + if (bTextChanged) { vcl::Window * pWindow = pHelpWin->GetParent()->ImplGetFrameWindow(); Rectangle aInvRect( pHelpWin->GetWindowExtentsRelative( pWindow ) ); |