summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/newhelp.cxx
diff options
context:
space:
mode:
authorJennifer Liebel <jliebel94@gmail.com>2014-11-17 09:18:52 +0000
committerTobias Madl <tobias.madl.dev@gmail.com>2014-12-09 12:34:58 +0000
commitd843f3de731667a298a83fc66637c7f983f3b24d (patch)
tree7858b40511f16654d93828676991d8a4b84a044a /sfx2/source/appl/newhelp.cxx
parent821ae0fb9fa63e0171f987d5ec210ec121978b8f (diff)
changed timers to idle
Change-Id: I92f40d3dad133347f1b8db0b025b624d3305f885
Diffstat (limited to 'sfx2/source/appl/newhelp.cxx')
-rw-r--r--sfx2/source/appl/newhelp.cxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 152e6e480100..77265a2bfa41 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -538,10 +538,9 @@ IndexTabPage_Impl::IndexTabPage_Impl(vcl::Window* pParent, SfxHelpIndexWindow_Im
m_pOpenBtn->SetClickHdl( LINK( this, IndexTabPage_Impl, OpenHdl ) );
Link aTimeoutLink = LINK( this, IndexTabPage_Impl, TimeoutHdl );
- aFactoryTimer.SetTimeoutHdl( aTimeoutLink );
- aFactoryTimer.SetTimeout( 300 );
+ aFactoryIdle.SetIdleHdl( aTimeoutLink );
+ aFactoryIdle.SetPriority(VCL_IDLE_PRIORITY_LOWER);
aKeywordTimer.SetTimeoutHdl( aTimeoutLink );
- aFactoryTimer.SetTimeout( 300 );
}
IndexTabPage_Impl::~IndexTabPage_Impl()
@@ -711,7 +710,7 @@ IMPL_LINK_NOARG(IndexTabPage_Impl, OpenHdl)
IMPL_LINK( IndexTabPage_Impl, TimeoutHdl, Timer*, pTimer )
{
- if ( &aFactoryTimer == pTimer )
+ if ( &aFactoryIdle == pTimer )
InitializeIndex();
else if ( &aKeywordTimer == pTimer && !sKeyword.isEmpty() )
aKeywordLink.Call( this );
@@ -723,7 +722,7 @@ void IndexTabPage_Impl::ActivatePage()
if ( !bIsActivated )
{
bIsActivated = true;
- aFactoryTimer.Start();
+ aFactoryIdle.Start();
}
if ( !m_pIdxWin->WasCursorLeftOrRight() )
@@ -757,7 +756,7 @@ void IndexTabPage_Impl::SetFactory( const OUString& rFactory )
sFactory = sNewFactory;
ClearIndex();
if ( bIsActivated )
- aFactoryTimer.Start();
+ aFactoryIdle.Start();
}
}
@@ -781,7 +780,7 @@ void IndexTabPage_Impl::SetKeyword( const OUString& rKeyword )
if ( m_pIndexCB->GetEntryCount() > 0 )
aKeywordTimer.Start();
else if ( !bIsActivated )
- aFactoryTimer.Start();
+ aFactoryIdle.Start();
}