diff options
author | rpmbuild <rpmbuild@fedoraproject.org> | 2016-08-15 15:17:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-08-18 14:32:25 +0100 |
commit | e527edf06f8befb45b76ee8ebabe62e6dc885e45 (patch) | |
tree | bbdd7d44ba916a0d823cf57d19fc905132206cb8 /vcl | |
parent | 089620728299ab1688edaf066e9f9790d67449aa (diff) |
Change-Id: Id9ec91ed9652f491e4e2a0556eeed27bf6517002
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/helpwin.hxx | 1 | ||||
-rw-r--r-- | vcl/source/app/help.cxx | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/vcl/inc/helpwin.hxx b/vcl/inc/helpwin.hxx index e7cc81a8e847..38645753b379 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 28bc632cb810..7a8bbc867883 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(); |