diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-19 18:44:25 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-19 18:44:25 +0000 |
commit | f3d91332267efafe2f6ffde1eb5b7f3ca48fcbfc (patch) | |
tree | dc3f25285e39cdcaf58489cc3a499a7bd8816c09 /kspread/kspread_handler.cc | |
parent | abbfa2ecec4464862ce2707972aa43bb5b2fb475 (diff) | |
download | koffice-f3d91332267efafe2f6ffde1eb5b7f3ca48fcbfc.tar.gz koffice-f3d91332267efafe2f6ffde1eb5b7f3ca48fcbfc.zip |
Rename tqgeometry* to geometry*
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1242307 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspread/kspread_handler.cc')
-rw-r--r-- | kspread/kspread_handler.cc | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/kspread/kspread_handler.cc b/kspread/kspread_handler.cc index 5adedbfd..262774ff 100644 --- a/kspread/kspread_handler.cc +++ b/kspread/kspread_handler.cc @@ -34,8 +34,8 @@ bool InsertHandler::eventFilter( TQObject*, TQEvent* ev ) { TQMouseEvent* e = (TQMouseEvent*)ev; - m_tqgeometryStart = e->pos(); - m_tqgeometryEnd = e->pos(); + m_geometryStart = e->pos(); + m_geometryEnd = e->pos(); m_started = false; m_clicked = true; @@ -58,15 +58,15 @@ bool InsertHandler::eventFilter( TQObject*, TQEvent* ev ) if ( m_started ) { - int x = m_tqgeometryStart.x(); - int y = m_tqgeometryStart.y(); - if ( x > m_tqgeometryEnd.x() ) - x = m_tqgeometryEnd.x(); - if ( y > m_tqgeometryEnd.y() ) - y = m_tqgeometryEnd.y(); - int w = m_tqgeometryEnd.x() - m_tqgeometryStart.x(); + int x = m_geometryStart.x(); + int y = m_geometryStart.y(); + if ( x > m_geometryEnd.x() ) + x = m_geometryEnd.x(); + if ( y > m_geometryEnd.y() ) + y = m_geometryEnd.y(); + int w = m_geometryEnd.x() - m_geometryStart.x(); if ( w < 0 ) w *= -1; - int h = m_tqgeometryEnd.y() - m_tqgeometryStart.y(); + int h = m_geometryEnd.y() - m_geometryStart.y(); if ( h < 0 ) h *= -1; if ( w < KS_MIN_RECTSIZE ) w = KS_MIN_RECTSIZE; @@ -77,17 +77,17 @@ bool InsertHandler::eventFilter( TQObject*, TQEvent* ev ) else m_started = true; - m_tqgeometryEnd = e->pos(); + m_geometryEnd = e->pos(); - int x = m_tqgeometryStart.x(); - int y = m_tqgeometryStart.y(); - if ( x > m_tqgeometryEnd.x() ) - x = m_tqgeometryEnd.x(); - if ( y > m_tqgeometryEnd.y() ) - y = m_tqgeometryEnd.y(); - int w = m_tqgeometryEnd.x() - m_tqgeometryStart.x(); + int x = m_geometryStart.x(); + int y = m_geometryStart.y(); + if ( x > m_geometryEnd.x() ) + x = m_geometryEnd.x(); + if ( y > m_geometryEnd.y() ) + y = m_geometryEnd.y(); + int w = m_geometryEnd.x() - m_geometryStart.x(); if ( w < 0 ) w *= -1; - int h = m_tqgeometryEnd.y() - m_tqgeometryStart.y(); + int h = m_geometryEnd.y() - m_geometryStart.y(); if ( h < 0 ) h *= -1; if ( w < KS_MIN_RECTSIZE ) w = KS_MIN_RECTSIZE; @@ -108,17 +108,17 @@ bool InsertHandler::eventFilter( TQObject*, TQEvent* ev ) return true; } - m_tqgeometryEnd = e->pos(); - - int x = m_tqgeometryStart.x(); - int y = m_tqgeometryStart.y(); - if ( x > m_tqgeometryEnd.x() ) - x = m_tqgeometryEnd.x(); - if ( y > m_tqgeometryEnd.y() ) - y = m_tqgeometryEnd.y(); - int w = m_tqgeometryEnd.x() - m_tqgeometryStart.x(); + m_geometryEnd = e->pos(); + + int x = m_geometryStart.x(); + int y = m_geometryStart.y(); + if ( x > m_geometryEnd.x() ) + x = m_geometryEnd.x(); + if ( y > m_geometryEnd.y() ) + y = m_geometryEnd.y(); + int w = m_geometryEnd.x() - m_geometryStart.x(); if ( w < 0 ) w *= -1; - int h = m_tqgeometryEnd.y() - m_tqgeometryStart.y(); + int h = m_geometryEnd.y() - m_geometryStart.y(); if ( h < 0 ) h *= -1; if ( w < KS_MIN_RECTSIZE ) w = KS_MIN_RECTSIZE; |