diff options
author | Jennifer Liebel <jliebel94@gmail.com> | 2014-11-18 13:07:45 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-12-09 12:34:59 +0000 |
commit | 2a5500567544ef4e70528c0da0cf927d407dbf78 (patch) | |
tree | cf059658b3f551d4b4e23851876ad4cda082f988 /vcl | |
parent | 24afc4f09d29881159ed1f58d92b714c690534da (diff) |
changed timers to idle
Change-Id: I0d2119a297c9a6d9b99676a561ddf4dd654ecaea
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/toolbox.cxx | 4 | ||||
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 0610246c8ec3..082d86dbe821 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -1407,8 +1407,8 @@ void ToolBox::ImplInit( vcl::Window* pParent, WinBits nStyle ) mnKeyModifier = 0; mnActivateCount = 0; - maTimer.SetTimeout( 50 ); - maTimer.SetTimeoutHdl( LINK( this, ToolBox, ImplUpdateHdl ) ); + maIdle.SetPriority( VCL_IDLE_PRIORITY_RESIZE ); + maIdle.SetIdleHdl( LINK( this, ToolBox, ImplUpdateHdl ) ); // set timeout and handler for dropdown items mpData->maDropdownTimer.SetTimeout( 250 ); diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index 2fc8c324209a..938a93223025 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -366,7 +366,7 @@ void ToolBox::ImplInvalidate( bool bNewCalc, bool bFullPaint ) { Invalidate( Rectangle( mnLeftBorder, mnTopBorder, mnDX-mnRightBorder-1, mnDY-mnBottomBorder-1 ) ); - maTimer.Stop(); + maIdle.Stop(); } } else @@ -377,7 +377,7 @@ void ToolBox::ImplInvalidate( bool bNewCalc, bool bFullPaint ) // do we need to redraw? if ( IsReallyVisible() && IsUpdateMode() ) - maTimer.Start(); + maIdle.Start(); } } |