diff options
author | Jennifer Liebel <jliebel94@gmail.com> | 2014-11-07 11:21:23 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-12-09 12:34:52 +0000 |
commit | 5849d637faba09b2a67d7d3c355d1e1b5ce52380 (patch) | |
tree | 54fd339b6928952bdb61ee910660b36d5acb5369 /sc | |
parent | 466c7b01e290513fdd252cd1783786e5521baacf (diff) |
changed timers to idle
Change-Id: Ibdecb970f7e6119929ec172e56d986c682008487
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/inc/acredlin.hxx | 4 | ||||
-rw-r--r-- | sc/source/ui/miscdlgs/acredlin.cxx | 10 |
2 files changed, 7 insertions, 7 deletions
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; |