summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorTobias Madl <tobias.madl.dev@gmail.com>2014-11-12 12:59:59 +0000
committerTobias Madl <tobias.madl.dev@gmail.com>2014-12-09 12:34:56 +0000
commit85e384f32b9f38e1cdcb4801dd6d8c66831f784e (patch)
tree03dc477d28b915b0d2d43e60c33f1744c30d61cc /svtools
parent85efe9c2f0d97e83acfa4cb0a0379fe6a85bccb3 (diff)
changed timers to idles
Change-Id: I39b081b751219201e86fec1e626b450f15bea9ab
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/imivctl.hxx4
-rw-r--r--svtools/source/contnr/imivctl1.cxx6
2 files changed, 5 insertions, 5 deletions
diff --git a/svtools/source/contnr/imivctl.hxx b/svtools/source/contnr/imivctl.hxx
index 03a9d0668d01..ed244ad52090 100644
--- a/svtools/source/contnr/imivctl.hxx
+++ b/svtools/source/contnr/imivctl.hxx
@@ -168,7 +168,7 @@ class SvxIconChoiceCtrl_Impl
Timer aAutoArrangeTimer;
Timer aDocRectChangedTimer;
Timer aVisRectChangedTimer;
- Timer aCallSelectHdlTimer;
+ Idle aCallSelectHdlIdle;
Size aVirtOutputSize;
Size aImageSize;
Size aDefaultTextSize;
@@ -552,7 +552,7 @@ public:
const Rectangle& rBmpRect,
bool bHide
);
- void StopSelectTimer() { aCallSelectHdlTimer.Stop(); }
+ void StopSelectTimer() { aCallSelectHdlIdle.Stop(); }
void CallEventListeners( sal_uLong nEvent, void* pData = NULL );
diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx
index 57982a560bd3..b6c89e3198ad 100644
--- a/svtools/source/contnr/imivctl1.cxx
+++ b/svtools/source/contnr/imivctl1.cxx
@@ -139,8 +139,8 @@ SvxIconChoiceCtrl_Impl::SvxIconChoiceCtrl_Impl(
aEditIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,EditTimeoutHdl));
aAutoArrangeTimer.SetTimeout( 100 );
aAutoArrangeTimer.SetTimeoutHdl(LINK(this,SvxIconChoiceCtrl_Impl,AutoArrangeHdl));
- aCallSelectHdlTimer.SetTimeout( 500 );
- aCallSelectHdlTimer.SetTimeoutHdl( LINK(this,SvxIconChoiceCtrl_Impl,CallSelectHdlHdl));
+ aCallSelectHdlIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST );
+ aCallSelectHdlIdle.SetIdleHdl( LINK(this,SvxIconChoiceCtrl_Impl,CallSelectHdlHdl));
aDocRectChangedTimer.SetTimeout( 50 );
aDocRectChangedTimer.SetTimeoutHdl(LINK(this,SvxIconChoiceCtrl_Impl,DocRectChangedHdl));
@@ -3778,7 +3778,7 @@ void SvxIconChoiceCtrl_Impl::CallSelectHandler( SvxIconChoiceCtrlEntry* )
//pView->Select();
}
else
- aCallSelectHdlTimer.Start();
+ aCallSelectHdlIdle.Start();
}
IMPL_LINK_NOARG(SvxIconChoiceCtrl_Impl, CallSelectHdlHdl)