diff options
-rw-r--r-- | sfx2/source/appl/newhelp.cxx | 6 | ||||
-rw-r--r-- | sfx2/source/appl/newhelp.hxx | 2 | ||||
-rw-r--r-- | vcl/source/edit/textdat2.hxx | 2 | ||||
-rw-r--r-- | vcl/source/edit/textdata.cxx | 5 | ||||
-rw-r--r-- | vcl/source/edit/texteng.cxx | 2 |
5 files changed, 9 insertions, 8 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx index ae3a2cdccaac..34b462097199 100644 --- a/sfx2/source/appl/newhelp.cxx +++ b/sfx2/source/appl/newhelp.cxx @@ -1875,8 +1875,8 @@ SfxHelpTextWindow_Impl::SfxHelpTextWindow_Impl( SfxHelpWindow_Impl* pParent ) : InitOnStartupBox( false ); aOnStartupCB.SetClickHdl( LINK( this, SfxHelpTextWindow_Impl, CheckHdl ) ); - aSelectTimer.SetTimeoutHdl( LINK( this, SfxHelpTextWindow_Impl, SelectHdl ) ); - aSelectTimer.SetTimeout( 1000 ); + aSelectIdle.SetIdleHdl( LINK( this, SfxHelpTextWindow_Impl, SelectHdl ) ); + aSelectIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST ); char* pEnv = getenv( "help_debug" ); if ( pEnv ) @@ -2497,7 +2497,7 @@ void SfxHelpTextWindow_Impl::SelectSearchText( const OUString& rSearchText, bool { aSearchText = rSearchText; bIsFullWordSearch = _bIsFullWordSearch; - aSelectTimer.Start(); + aSelectIdle.Start(); } diff --git a/sfx2/source/appl/newhelp.hxx b/sfx2/source/appl/newhelp.hxx index a910fd003438..eb303e129b42 100644 --- a/sfx2/source/appl/newhelp.hxx +++ b/sfx2/source/appl/newhelp.hxx @@ -405,7 +405,7 @@ class SfxHelpTextWindow_Impl : public vcl::Window private: ToolBox aToolBox; CheckBox aOnStartupCB; - Timer aSelectTimer; + Idle aSelectIdle; Image aIndexOnImage; Image aIndexOffImage; OUString aIndexOnText; diff --git a/vcl/source/edit/textdat2.hxx b/vcl/source/edit/textdat2.hxx index 2834f0852b82..e93f78595acf 100644 --- a/vcl/source/edit/textdat2.hxx +++ b/vcl/source/edit/textdat2.hxx @@ -252,7 +252,7 @@ public: virtual void DestroyAnchor() SAL_OVERRIDE; }; -class IdleFormatter : public Timer +class IdleFormatter : public Idle { private: TextView* mpView; diff --git a/vcl/source/edit/textdata.cxx b/vcl/source/edit/textdata.cxx index a6bd6ac224f0..b4f5047f689f 100644 --- a/vcl/source/edit/textdata.cxx +++ b/vcl/source/edit/textdata.cxx @@ -223,6 +223,7 @@ IdleFormatter::IdleFormatter() { mpView = 0; mnRestarts = 0; + SetPriority(VCL_IDLE_PRIORITY_HIGH); } IdleFormatter::~IdleFormatter() @@ -240,7 +241,7 @@ void IdleFormatter::DoIdleFormat( TextView* pV, sal_uInt16 nMaxRestarts ) if ( mnRestarts > nMaxRestarts ) { mnRestarts = 0; - ((Link&)GetTimeoutHdl()).Call( this ); + ((Link&)GetIdleHdl()).Call( this ); } else { @@ -254,7 +255,7 @@ void IdleFormatter::ForceTimeout() { Stop(); mnRestarts = 0; - ((Link&)GetTimeoutHdl()).Call( this ); + ((Link&)GetIdleHdl()).Call( this ); } } diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index 0202a50a937c..81ff71f4a012 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -92,7 +92,7 @@ TextEngine::TextEngine() mpLocaleDataWrapper = NULL; mpIdleFormatter = new IdleFormatter; - mpIdleFormatter->SetTimeoutHdl( LINK( this, TextEngine, IdleFormatHdl ) ); + mpIdleFormatter->SetIdleHdl( LINK( this, TextEngine, IdleFormatHdl ) ); mpRefDev = new VirtualDevice; |