Resolves: rhbz#1364335 tooltips are truncated

f41
David Tardon 8 years ago
parent 77ecb0549a
commit 7d94469db7

@ -0,0 +1,48 @@
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

@ -240,6 +240,7 @@ Patch10: 0001-Resolves-rhbz-1351224-wayland-grab-related-crashes.patch
Patch11: 0001-Resolves-rhbz-1352965-gtk3-infinite-clipboard-recurs.patch Patch11: 0001-Resolves-rhbz-1352965-gtk3-infinite-clipboard-recurs.patch
Patch12: 0001-Related-rhbz-1351369-gtk3-clipboards-have-to-live-to.patch Patch12: 0001-Related-rhbz-1351369-gtk3-clipboards-have-to-live-to.patch
Patch13: 0001-gtk3-style-combobox-never-becomes-sensitive-if-it-st.patch Patch13: 0001-gtk3-style-combobox-never-becomes-sensitive-if-it-st.patch
Patch14: 0001-Resolves-tdf-91533-rhbz-1364335-Tooltips-are-truncat.patch
%if 0%{?rhel} %if 0%{?rhel}
# not upstreamed # not upstreamed

Loading…
Cancel
Save