vcl/inc/helpwin.hxx | 1 - vcl/source/app/help.cxx | 12 +----------- 2 files changed, 1 insertion(+), 12 deletions(-)
New commits: commit 9a6966c913e5301101456a3df8b8cd96a8e5588c Author: Caolán McNamara <caol...@redhat.com> Date: Wed Oct 18 12:43:43 2017 +0100 tdf#112830 measure test with ApplySettings applied and don't invalidate on first view Change-Id: I1156c83c0365ef27946cc414cad8dfa07206e5af Reviewed-on: https://gerrit.libreoffice.org/43498 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> (cherry picked from commit 660b12e47d3aedb8fcf2ed2c50f8175d351a51aa) Reviewed-on: https://gerrit.libreoffice.org/43645 diff --git a/vcl/inc/helpwin.hxx b/vcl/inc/helpwin.hxx index c2d068c1c79e..09fed59b7138 100644 --- a/vcl/inc/helpwin.hxx +++ b/vcl/inc/helpwin.hxx @@ -47,7 +47,6 @@ private: virtual void Paint(vcl::RenderContext& rRenderContext, const tools::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 29221658c2e2..3d6eec421fb8 100644 --- a/vcl/source/app/help.cxx +++ b/vcl/source/app/help.cxx @@ -281,17 +281,6 @@ HelpTextWindow::HelpTextWindow( vcl::Window* pParent, const OUString& rText, sal maHideTimer.SetDebugName( "vcl::HelpTextWindow maHideTimer" ); } -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(); @@ -334,6 +323,7 @@ void HelpTextWindow::dispose() void HelpTextWindow::SetHelpText( const OUString& rHelpText ) { maHelpText = rHelpText; + ApplySettings(*this); if ( mnHelpWinStyle == HELPWINSTYLE_QUICK && maHelpText.getLength() < HELPTEXTMAXLEN) { Size aSize;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits