summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorTobias Madl <tobias.madl.dev@gmail.com>2014-11-10 16:19:19 +0000
committerTobias Madl <tobias.madl.dev@gmail.com>2014-12-09 12:34:54 +0000
commit9d5db8287b69ee74b0a4182740969e1372ec8f10 (patch)
tree8b683006e2bb88a9c8f914bc648a0c97beea17b5 /svtools
parent9824b78dd4ac44fe61d194854a4bc0e98015b4b2 (diff)
Changed timer to idle
Change-Id: Id1de5f1ee73fbef9ddebd6642ab8c9b558be4d71
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/imivctl.hxx6
-rw-r--r--svtools/source/contnr/imivctl1.cxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/svtools/source/contnr/imivctl.hxx b/svtools/source/contnr/imivctl.hxx
index 24c3bdd12d40..03a9d0668d01 100644
--- a/svtools/source/contnr/imivctl.hxx
+++ b/svtools/source/contnr/imivctl.hxx
@@ -164,7 +164,7 @@ class SvxIconChoiceCtrl_Impl
ScrollBarBox aScrBarBox;
Rectangle aCurSelectionRect;
std::vector<Rectangle*> aSelectedRectList;
- Timer aEditTimer; // for editing in place
+ Idle aEditIdle; // for editing in place
Timer aAutoArrangeTimer;
Timer aDocRectChangedTimer;
Timer aVisRectChangedTimer;
@@ -251,8 +251,8 @@ class SvxIconChoiceCtrl_Impl
void ToggleSelection( SvxIconChoiceCtrlEntry* );
void DeselectAllBut( SvxIconChoiceCtrlEntry*, bool bPaintSync = false );
void Center( SvxIconChoiceCtrlEntry* pEntry ) const;
- void StopEditTimer() { aEditTimer.Stop(); }
- void StartEditTimer() { aEditTimer.Start(); }
+ void StopEditTimer() { aEditIdle.Stop(); }
+ void StartEditTimer() { aEditIdle.Start(); }
void ImpHideDDIcon();
void CallSelectHandler( SvxIconChoiceCtrlEntry* );
void SelectRect(
diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx
index b4f9fb20dfbe..57982a560bd3 100644
--- a/svtools/source/contnr/imivctl1.cxx
+++ b/svtools/source/contnr/imivctl1.cxx
@@ -135,8 +135,8 @@ SvxIconChoiceCtrl_Impl::SvxIconChoiceCtrl_Impl(
nHorSBarHeight = aHorSBar.GetSizePixel().Height();
nVerSBarWidth = aVerSBar.GetSizePixel().Width();
- aEditTimer.SetTimeout( 800 );
- aEditTimer.SetTimeoutHdl(LINK(this,SvxIconChoiceCtrl_Impl,EditTimeoutHdl));
+ aEditIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST );
+ aEditIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,EditTimeoutHdl));
aAutoArrangeTimer.SetTimeout( 100 );
aAutoArrangeTimer.SetTimeoutHdl(LINK(this,SvxIconChoiceCtrl_Impl,AutoArrangeHdl));
aCallSelectHdlTimer.SetTimeout( 500 );