You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.6 KiB
49 lines
1.6 KiB
From e527edf06f8befb45b76ee8ebabe62e6dc885e45 Mon Sep 17 00:00:00 2001
|
|
From: rpmbuild <rpmbuild@fedoraproject.org>
|
|
Date: Mon, 15 Aug 2016 15:17:11 +0100
|
|
Subject: [PATCH] Resolves: tdf#91533 (rhbz#1364335) Tooltips are truncated
|
|
|
|
Change-Id: Id9ec91ed9652f491e4e2a0556eeed27bf6517002
|
|
---
|
|
vcl/inc/helpwin.hxx | 1 +
|
|
vcl/source/app/help.cxx | 11 +++++++++++
|
|
2 files changed, 12 insertions(+)
|
|
|
|
diff --git a/vcl/inc/helpwin.hxx b/vcl/inc/helpwin.hxx
|
|
index e7cc81a..3864575 100644
|
|
--- a/vcl/inc/helpwin.hxx
|
|
+++ b/vcl/inc/helpwin.hxx
|
|
@@ -47,6 +47,7 @@ private:
|
|
virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) override;
|
|
virtual void RequestHelp( const HelpEvent& rHEvt ) override;
|
|
virtual void ApplySettings(vcl::RenderContext& rRenderContext) override;
|
|
+ virtual void StateChanged(StateChangedType nType) override;
|
|
|
|
virtual OUString GetText() const override;
|
|
void ImplShow();
|
|
diff --git a/vcl/source/app/help.cxx b/vcl/source/app/help.cxx
|
|
index 28bc632..7a8bbc8 100644
|
|
--- a/vcl/source/app/help.cxx
|
|
+++ b/vcl/source/app/help.cxx
|
|
@@ -277,6 +277,17 @@ HelpTextWindow::HelpTextWindow( vcl::Window* pParent, const OUString& rText, sal
|
|
maHideTimer.SetTimeout( rHelpSettings.GetTipTimeout() );
|
|
}
|
|
|
|
+void HelpTextWindow::StateChanged(StateChangedType nType)
|
|
+{
|
|
+ FloatingWindow::StateChanged(nType);
|
|
+ if (nType == StateChangedType::InitShow)
|
|
+ {
|
|
+ ApplySettings(*this);
|
|
+ SetHelpText(maHelpText);
|
|
+ Invalidate();
|
|
+ }
|
|
+}
|
|
+
|
|
void HelpTextWindow::ApplySettings(vcl::RenderContext& rRenderContext)
|
|
{
|
|
const StyleSettings& rStyleSettings = rRenderContext.GetSettings().GetStyleSettings();
|
|
--
|
|
2.7.4
|
|
|