summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Madl <tobias.madl.dev@gmail.com>2014-12-04 09:31:30 +0000
committerTobias Madl <tobias.madl.dev@gmail.com>2014-12-09 12:35:06 +0000
commit9fe256e56d80a310538e55c3730a6321282b0716 (patch)
treee0a6d07e0589f5b4b2d5683c81f78e11479a8109
parent51b025922ac8387dd749cb359e5188e74ede2213 (diff)
changed inherited timer to idle
Change-Id: I9da6d08964c32e4aafbc9cebc7840eb517f9c33a
-rw-r--r--svx/inc/sdr/contact/objectcontactofpageview.hxx2
-rw-r--r--svx/source/inc/eventhandler.hxx4
-rw-r--r--svx/source/sdr/contact/objectcontactofpageview.cxx2
-rw-r--r--svx/source/sdr/contact/viewobjectcontactofpageobj.cxx4
-rw-r--r--svx/source/sdr/event/eventhandler.cxx4
5 files changed, 8 insertions, 8 deletions
diff --git a/svx/inc/sdr/contact/objectcontactofpageview.hxx b/svx/inc/sdr/contact/objectcontactofpageview.hxx
index d8ea21f61d8c..90706b99e3de 100644
--- a/svx/inc/sdr/contact/objectcontactofpageview.hxx
+++ b/svx/inc/sdr/contact/objectcontactofpageview.hxx
@@ -34,7 +34,7 @@ namespace sdr
{
namespace contact
{
- class ObjectContactOfPageView : public ObjectContact, public Timer
+ class ObjectContactOfPageView : public ObjectContact, public Idle
{
protected:
// the owner of this ObjectContactOfPageView. Set from constructor and not
diff --git a/svx/source/inc/eventhandler.hxx b/svx/source/inc/eventhandler.hxx
index 3c7670c05c00..f3a31de5ec50 100644
--- a/svx/source/inc/eventhandler.hxx
+++ b/svx/source/inc/eventhandler.hxx
@@ -92,10 +92,10 @@ namespace sdr
{
namespace event
{
- class TimerEventHandler : public EventHandler, public Timer
+ class TimerEventHandler : public EventHandler, public Idle
{
public:
- TimerEventHandler(sal_uInt32 nTimeout = 1L);
+ TimerEventHandler(IdlePriority ePriority = VCL_IDLE_PRIORITY_HIGH);
virtual ~TimerEventHandler();
diff --git a/svx/source/sdr/contact/objectcontactofpageview.cxx b/svx/source/sdr/contact/objectcontactofpageview.cxx
index e2a13579a15a..d3dfe2d240ef 100644
--- a/svx/source/sdr/contact/objectcontactofpageview.cxx
+++ b/svx/source/sdr/contact/objectcontactofpageview.cxx
@@ -59,7 +59,7 @@ namespace sdr
setPreviewRenderer(((SdrPaintView&)rPageWindow.GetPageView().GetView()).IsPreviewRenderer());
// init timer
- SetTimeout(1);
+ SetPriority(VCL_IDLE_PRIORITY_HIGH);
Stop();
}
diff --git a/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx b/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx
index 8e65fb02a58f..007dc7d82d14 100644
--- a/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx
+++ b/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx
@@ -36,7 +36,7 @@ using namespace com::sun::star;
namespace sdr { namespace contact {
-class PagePrimitiveExtractor : public ObjectContactOfPagePainter, public Timer
+class PagePrimitiveExtractor : public ObjectContactOfPagePainter, public Idle
{
private:
// the ViewObjectContactOfPageObj using this painter
@@ -83,7 +83,7 @@ PagePrimitiveExtractor::PagePrimitiveExtractor(
setPreviewRenderer(true);
// init timer
- SetTimeout(1);
+ SetPriority(VCL_IDLE_PRIORITY_HIGH);
Stop();
}
diff --git a/svx/source/sdr/event/eventhandler.cxx b/svx/source/sdr/event/eventhandler.cxx
index cf9b2f599ed5..14156c42f6a4 100644
--- a/svx/source/sdr/event/eventhandler.cxx
+++ b/svx/source/sdr/event/eventhandler.cxx
@@ -121,9 +121,9 @@ namespace sdr
{
namespace event
{
- TimerEventHandler::TimerEventHandler(sal_uInt32 nTimeout)
+ TimerEventHandler::TimerEventHandler(IdlePriority ePriority)
{
- SetTimeout(nTimeout);
+ SetPriority(ePriority);
Stop();
}