diff options
author | Jennifer Liebel <jliebel94@gmail.com> | 2014-11-10 14:57:14 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-12-09 12:34:54 +0000 |
commit | 9824b78dd4ac44fe61d194854a4bc0e98015b4b2 (patch) | |
tree | 1f6ef6221f76c492a386e2bedb7b59fbe1978557 /dbaccess/source/ui | |
parent | 484129d08cc48595fe735f77bc3a30b5b8c3475a (diff) |
changed timers to idle
Change-Id: I5846940cc45781f4a0264047107dbb568604d543
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r-- | dbaccess/source/ui/inc/JoinTableView.hxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/JoinTableView.cxx | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/dbaccess/source/ui/inc/JoinTableView.hxx b/dbaccess/source/ui/inc/JoinTableView.hxx index c9c500263402..a14be0d739de 100644 --- a/dbaccess/source/ui/inc/JoinTableView.hxx +++ b/dbaccess/source/ui/inc/JoinTableView.hxx @@ -85,7 +85,7 @@ namespace dbaui OTableWindowMap m_aTableMap; ::std::vector<OTableConnection*> m_vTableConnection; - Timer m_aDragScrollTimer; + Idle m_aDragScrollIdle; Rectangle m_aDragRect; Rectangle m_aSizingRect; Point m_aDragOffset; diff --git a/dbaccess/source/ui/querydesign/JoinTableView.cxx b/dbaccess/source/ui/querydesign/JoinTableView.cxx index f622e3eac0b8..020e990e4db7 100644 --- a/dbaccess/source/ui/querydesign/JoinTableView.cxx +++ b/dbaccess/source/ui/querydesign/JoinTableView.cxx @@ -169,7 +169,7 @@ OJoinTableView::OJoinTableView( vcl::Window* pParent, OJoinDesignView* pView ) InitColors(); - m_aDragScrollTimer.SetTimeoutHdl(LINK(this, OJoinTableView, OnDragScrollTimer)); + m_aDragScrollIdle.SetIdleHdl(LINK(this, OJoinTableView, OnDragScrollTimer)); } OJoinTableView::~OJoinTableView() @@ -716,8 +716,8 @@ void OJoinTableView::Tracking( const TrackingEvent& rTEvt ) { if( m_pDragWin ) { - if (m_aDragScrollTimer.IsActive()) - m_aDragScrollTimer.Stop(); + if (m_aDragScrollIdle.IsActive()) + m_aDragScrollIdle.Stop(); // adjust position of child after moving // windows are not allowed to leave display range @@ -776,8 +776,8 @@ void OJoinTableView::Tracking( const TrackingEvent& rTEvt ) } else if (rTEvt.IsTrackingCanceled()) { - if (m_aDragScrollTimer.IsActive()) - m_aDragScrollTimer.Stop(); + if (m_aDragScrollIdle.IsActive()) + m_aDragScrollIdle.Stop(); EndTracking(); } else @@ -989,8 +989,8 @@ bool OJoinTableView::ScrollWhileDragging() OSL_ENSURE(m_pDragWin != NULL, "OJoinTableView::ScrollWhileDragging must not be called when a window is being dragged !"); // kill the timer - if (m_aDragScrollTimer.IsActive()) - m_aDragScrollTimer.Stop(); + if (m_aDragScrollIdle.IsActive()) + m_aDragScrollIdle.Stop(); Point aDragWinPos = m_ptPrevDraggingPos - m_aDragOffset; Size aDragWinSize = m_pDragWin->GetSizePixel(); @@ -1048,8 +1048,8 @@ bool OJoinTableView::ScrollWhileDragging() // resetting timer, if still necessary if (bNeedScrollTimer) { - m_aDragScrollTimer.SetTimeout(100); - m_aDragScrollTimer.Start(); + m_aDragScrollIdle.SetPriority(VCL_IDLE_PRIORITY_LOW); + m_aDragScrollIdle.Start(); } // redraw DraggingRect |