diff options
author | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-11-14 15:31:13 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-12-09 12:34:57 +0000 |
commit | 821ae0fb9fa63e0171f987d5ec210ec121978b8f (patch) | |
tree | 36e16ed6cc082a0098147b02e99faa9cb8126a3f /sw | |
parent | ea6399b837f1cd4fb28be91b8e311e9378988fc5 (diff) |
changed timers to idles
Change-Id: I223026ce7676a3f8fcda7eb33326cd4ee949c6f0
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 8 | ||||
-rw-r--r-- | sw/source/uibase/inc/edtwin.hxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index d9b6a1c44705..4e0a63607918 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -4777,12 +4777,12 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt) m_pApplyTempl->bUndo = true; bCallBase = false; - m_aTemplateTimer.Stop(); + m_aTemplateIdle.Stop(); } else if(rMEvt.GetClicks() == 1) { // no selection -> so turn off watering can - m_aTemplateTimer.Start(); + m_aTemplateIdle.Start(); } } } @@ -5002,8 +5002,8 @@ SwEditWin::SwEditWin(vcl::Window *pParent, SwView &rMyView): // TemplatePointer for colors should be resetted without // selection after single click - m_aTemplateTimer.SetTimeout(400); - m_aTemplateTimer.SetTimeoutHdl(LINK(this, SwEditWin, TemplateTimerHdl)); + m_aTemplateIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST); + m_aTemplateIdle.SetIdleHdl(LINK(this, SwEditWin, TemplateTimerHdl)); // temporary solution!!! Should set the font of the current // insert position at every curor movement! diff --git a/sw/source/uibase/inc/edtwin.hxx b/sw/source/uibase/inc/edtwin.hxx index 92e758d46569..d1f7e35fb969 100644 --- a/sw/source/uibase/inc/edtwin.hxx +++ b/sw/source/uibase/inc/edtwin.hxx @@ -90,7 +90,7 @@ friend void PageNumNotify( SwViewShell* pVwSh, Point m_aStartPos; Point m_aMovePos; Point m_aRszMvHdlPt; - Timer m_aTemplateTimer; + Idle m_aTemplateIdle; // type/object where the mouse pointer is SwCallMouseEvent m_aSaveCallEvent; |