summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJennifer Liebel <jliebel94@gmail.com>2014-11-06 14:18:54 +0000
committerTobias Madl <tobias.madl.dev@gmail.com>2014-12-09 12:35:08 +0000
commita75c8443ba03aca54946edbdc5b21aca99c52799 (patch)
treecbb82eecbf2f9fad6e295b383220a49a7074a720 /svtools
parent439c8eba1180a2890266f2f01801d5d0a73fbe09 (diff)
changed timers to idles
Change-Id: Ic045e0c066ff1f607f0582b88e72375efaaa708f
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/svimpbox.cxx6
-rw-r--r--svtools/source/inc/svimpbox.hxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx
index a72df0fd7b2a..0162b97c739a 100644
--- a/svtools/source/contnr/svimpbox.cxx
+++ b/svtools/source/contnr/svimpbox.cxx
@@ -89,8 +89,8 @@ SvImpLBox::SvImpLBox( SvTreeListBox* pLBView, SvTreeList* pLBTree, WinBits nWinS
nNodeBmpWidth = 0;
bAsyncBeginDrag = false;
- aAsyncBeginDragTimer.SetTimeout(0);
- aAsyncBeginDragTimer.SetTimeoutHdl( LINK(this,SvImpLBox,BeginDragHdl));
+ aAsyncBeginDragIdle.SetPriority( VCL_IDLE_PRIORITY_HIGHEST );
+ aAsyncBeginDragIdle.SetIdleHdl( LINK(this,SvImpLBox,BeginDragHdl));
// button animation in listbox
pActiveButton = 0;
pActiveEntry = 0;
@@ -2933,7 +2933,7 @@ void SvImpLBox::BeginDrag()
else
{
aAsyncBeginDragPos = aSelEng.GetMousePosPixel();
- aAsyncBeginDragTimer.Start();
+ aAsyncBeginDragIdle.Start();
}
}
diff --git a/svtools/source/inc/svimpbox.hxx b/svtools/source/inc/svimpbox.hxx
index c98b62c4d730..84a5235d9758 100644
--- a/svtools/source/inc/svimpbox.hxx
+++ b/svtools/source/inc/svimpbox.hxx
@@ -125,7 +125,7 @@ private:
Size aOutputSize;
SelectionEngine aSelEng;
ImpLBSelEng aFctSet;
- Timer aAsyncBeginDragTimer;
+ Idle aAsyncBeginDragIdle;
Point aAsyncBeginDragPos;
long nYoffsNodeBmp;