diff options
author | Jennifer Liebel <jliebel94@gmail.com> | 2014-11-17 09:18:52 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-12-09 12:34:58 +0000 |
commit | d843f3de731667a298a83fc66637c7f983f3b24d (patch) | |
tree | 7858b40511f16654d93828676991d8a4b84a044a /sw/source/uibase/utlui/unotools.cxx | |
parent | 821ae0fb9fa63e0171f987d5ec210ec121978b8f (diff) |
changed timers to idle
Change-Id: I92f40d3dad133347f1b8db0b025b624d3305f885
Diffstat (limited to 'sw/source/uibase/utlui/unotools.cxx')
-rw-r--r-- | sw/source/uibase/utlui/unotools.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/utlui/unotools.cxx b/sw/source/uibase/utlui/unotools.cxx index a3c19c0e578b..97b530f9796a 100644 --- a/sw/source/uibase/utlui/unotools.cxx +++ b/sw/source/uibase/utlui/unotools.cxx @@ -82,8 +82,8 @@ SwOneExampleFrame::SwOneExampleFrame( vcl::Window& rWin, aInitializedLink = *pInitializedLink; // the controller is asynchronously set - aLoadedTimer.SetTimeoutHdl(LINK(this, SwOneExampleFrame, TimeoutHdl)); - aLoadedTimer.SetTimeout(200); + aLoadedIdle.SetIdleHdl(LINK(this, SwOneExampleFrame, TimeoutHdl)); + aLoadedIdle.SetPriority(VCL_IDLE_PRIORITY_LOWER); CreateControl(); @@ -153,7 +153,7 @@ void SwOneExampleFrame::CreateControl() xPrSet->setPropertyValue("ComponentURL", aURL); - aLoadedTimer.Start(); + aLoadedIdle.Start(); bServiceAvailable = true; } } @@ -421,13 +421,13 @@ void SwOneExampleFrame::ClearDocument( bool bStartUpdateTimer ) pDoc->ClearDoc(); pSh->ClearUpCrsrs(); - if( aLoadedTimer.IsActive() || !bStartUpdateTimer ) + if( aLoadedIdle.IsActive() || !bStartUpdateTimer ) { pSh->EndAllAction(); pSh->UnlockPaint(); } if( bStartUpdateTimer ) - aLoadedTimer.Start(); + aLoadedIdle.Start(); } else { |