From 5849d637faba09b2a67d7d3c355d1e1b5ce52380 Mon Sep 17 00:00:00 2001 From: Jennifer Liebel Date: Fri, 7 Nov 2014 11:21:23 +0000 Subject: changed timers to idle Change-Id: Ibdecb970f7e6119929ec172e56d986c682008487 --- sc/source/ui/inc/acredlin.hxx | 4 ++-- sc/source/ui/miscdlgs/acredlin.cxx | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/inc/acredlin.hxx b/sc/source/ui/inc/acredlin.hxx index 048e55227e48..79a7ad55d8fb 100644 --- a/sc/source/ui/inc/acredlin.hxx +++ b/sc/source/ui/inc/acredlin.hxx @@ -95,8 +95,8 @@ class ScAcceptChgDlg : public SfxModelessDialog { private: - Timer aSelectionTimer; - Timer aReOpenTimer; + Idle aSelectionIdle; + Idle aReOpenIdle; SvxAcceptChgCtr* m_pAcceptChgCtr; ScViewData* pViewData; ScDocument* pDoc; diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx index a511a1444597..dff8ae688150 100644 --- a/sc/source/ui/miscdlgs/acredlin.cxx +++ b/sc/source/ui/miscdlgs/acredlin.cxx @@ -114,14 +114,14 @@ ScAcceptChgDlg::ScAcceptChgDlg(SfxBindings* pB, SfxChildWindow* pCW, vcl::Window m_pAcceptChgCtr = new SvxAcceptChgCtr(get_content_area()); nAcceptCount=0; nRejectCount=0; - aReOpenTimer.SetTimeout(50); - aReOpenTimer.SetTimeoutHdl(LINK( this, ScAcceptChgDlg, ReOpenTimerHdl )); + aReOpenIdle.SetPriority(VCL_IDLE_PRIORITY_MEDIUM); + aReOpenIdle.SetIdleHdl(LINK( this, ScAcceptChgDlg, ReOpenTimerHdl )); pTPFilter=m_pAcceptChgCtr->GetFilterPage(); pTPView=m_pAcceptChgCtr->GetViewPage(); pTheView=pTPView->GetTableControl(); - aSelectionTimer.SetTimeout(100); - aSelectionTimer.SetTimeoutHdl(LINK( this, ScAcceptChgDlg, UpdateSelectionHdl )); + aSelectionIdle.SetPriority(VCL_IDLE_PRIORITY_LOW); + aSelectionIdle.SetIdleHdl(LINK( this, ScAcceptChgDlg, UpdateSelectionHdl )); pTPFilter->SetReadyHdl(LINK( this, ScAcceptChgDlg, FilterHandle )); pTPFilter->SetRefHdl(LINK( this, ScAcceptChgDlg, RefHandle )); @@ -1104,7 +1104,7 @@ IMPL_LINK_NOARG(ScAcceptChgDlg, AcceptAllHandle) IMPL_LINK_NOARG(ScAcceptChgDlg, SelectHandle) { if(!bNoSelection) - aSelectionTimer.Start(); + aSelectionIdle.Start(); bNoSelection=false; return 0; -- cgit