diff options
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; |