summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorTobias Madl <tobias.madl.dev@gmail.com>2014-11-10 07:55:35 +0000
committerTobias Madl <tobias.madl.dev@gmail.com>2014-12-09 12:34:52 +0000
commit83a5cc3a2d7e48e2939d8d5c50586e0ef2b8afd2 (patch)
tree87daa84cc68b4661f5c118a279f73ceb8c636fbe /sfx2
parent5849d637faba09b2a67d7d3c355d1e1b5ce52380 (diff)
changed timer to idle
Change-Id: Ib04932fe0f9e742e47bdff83748ffc5eb5706d71
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/newhelp.cxx14
-rw-r--r--sfx2/source/appl/newhelp.hxx2
2 files changed, 8 insertions, 8 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 34b462097199..152e6e480100 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -1402,9 +1402,9 @@ SfxHelpIndexWindow_Impl::SfxHelpIndexWindow_Impl(SfxHelpWindow_Impl* _pParent)
m_pActiveLB->SetSelectHdl( LINK( this, SfxHelpIndexWindow_Impl, SelectHdl ) );
nMinWidth = ( m_pActiveLB->GetSizePixel().Width() / 2 );
- aTimer.SetTimeoutHdl( LINK( this, SfxHelpIndexWindow_Impl, InitHdl ) );
- aTimer.SetTimeout( 200 );
- aTimer.Start();
+ aIdle.SetIdleHdl( LINK( this, SfxHelpIndexWindow_Impl, InitHdl ) );
+ aIdle.SetPriority( VCL_IDLE_PRIORITY_LOWER );
+ aIdle.Start();
Show();
}
@@ -1458,7 +1458,7 @@ void SfxHelpIndexWindow_Impl::SetActiveFactory()
DBG_ASSERT( pIPage, "index page not initialized" );
if ( !bIsInitDone && !m_pActiveLB->GetEntryCount() )
{
- aTimer.Stop();
+ aIdle.Stop();
InitHdl( NULL );
}
@@ -1518,7 +1518,7 @@ IMPL_LINK( SfxHelpIndexWindow_Impl, ActivatePageHdl, TabControl *, pTabCtrl )
IMPL_LINK_NOARG(SfxHelpIndexWindow_Impl, SelectHdl)
{
- aTimer.Start();
+ aIdle.Start();
return 0;
}
@@ -1529,8 +1529,8 @@ IMPL_LINK_NOARG(SfxHelpIndexWindow_Impl, InitHdl)
Initialize();
// now use the timer for selection
- aTimer.SetTimeoutHdl( LINK( this, SfxHelpIndexWindow_Impl, SelectFactoryHdl ) );
- aTimer.SetTimeout( 1000 );
+ aIdle.SetIdleHdl( LINK( this, SfxHelpIndexWindow_Impl, SelectFactoryHdl ) );
+ aIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST );
return 0;
}
diff --git a/sfx2/source/appl/newhelp.hxx b/sfx2/source/appl/newhelp.hxx
index eb303e129b42..233a317fdd77 100644
--- a/sfx2/source/appl/newhelp.hxx
+++ b/sfx2/source/appl/newhelp.hxx
@@ -274,7 +274,7 @@ private:
ListBox* m_pActiveLB;
TabControl* m_pTabCtrl;
- Timer aTimer;
+ Idle aIdle;
Link aSelectFactoryLink;
Link aPageDoubleClickLink;