diff options
Diffstat (limited to 'kspread/kspread_canvas.cpp')
-rw-r--r-- | kspread/kspread_canvas.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kspread/kspread_canvas.cpp b/kspread/kspread_canvas.cpp index 511e5e0c8..1154f650b 100644 --- a/kspread/kspread_canvas.cpp +++ b/kspread/kspread_canvas.cpp @@ -221,7 +221,7 @@ Canvas::Canvas (View *_view) d->defaultGridPen.setColor( lightGray ); d->defaultGridPen.setWidth( 1 ); - d->defaultGridPen.setStyle( Qt::SolidLine ); + d->defaultGridPen.setStyle( TQt::SolidLine ); d->xOffset = 0.0; d->yOffset = 0.0; @@ -1228,14 +1228,14 @@ void Canvas::mouseReleaseEvent( TQMouseEvent* /*_ev*/) void Canvas::processClickSelectionHandle( TQMouseEvent *event ) { // Auto fill ? That is done using the left mouse button. - if ( event->button() == Qt::LeftButton ) + if ( event->button() == TQt::LeftButton ) { d->mouseAction = AutoFill; d->autoFillSource = selectionInfo()->lastRange(); } // Resize a cell (done with the right mouse button) ? // But for that to work there must not be a selection. - else if ( event->button() == Qt::MidButton && selectionInfo()->isSingular()) + else if ( event->button() == TQt::MidButton && selectionInfo()->isSingular()) { d->mouseAction = ResizeCell; } @@ -1307,13 +1307,13 @@ bool Canvas::highlightRangeSizeGripAt(double x, double y) void Canvas::mousePressEvent( TQMouseEvent * _ev ) { - if ( _ev->button() == Qt::LeftButton ) + if ( _ev->button() == TQt::LeftButton ) { d->mousePressed = true; d->view->enableAutoScroll(); } - if ( activeSheet() && _ev->button() == Qt::LeftButton) + if ( activeSheet() && _ev->button() == TQt::LeftButton) { d->m_moveStartPosMouse = objectRect( false ).topLeft(); EmbeddedObject *obj = getObject( _ev->pos(), activeSheet() ); @@ -1495,7 +1495,7 @@ void Canvas::mousePressEvent( TQMouseEvent * _ev ) switch (_ev->button()) { - case Qt::LeftButton: + case TQt::LeftButton: if (!d->anchor.isEmpty()) { // Hyperlink pressed @@ -1532,7 +1532,7 @@ void Canvas::mousePressEvent( TQMouseEvent * _ev ) (d->chooseCell ? choice() : selectionInfo())->initialize(TQPoint(col,row), activeSheet()); } break; - case Qt::MidButton: + case TQt::MidButton: // Paste operation with the middle button? if ( d->view->koDocument()->isReadWrite() && !sheet->isProtected() ) { @@ -1542,7 +1542,7 @@ void Canvas::mousePressEvent( TQMouseEvent * _ev ) sheet->setRegionPaintDirty(*selectionInfo()); } break; - case Qt::RightButton: + case TQt::RightButton: if (!selectionInfo()->contains( TQPoint( col, row ) )) { // No selection or the mouse press was outside of an existing selection? @@ -1561,7 +1561,7 @@ void Canvas::mousePressEvent( TQMouseEvent * _ev ) updatePosWidget(); // Context menu? - if ( _ev->button() == Qt::RightButton ) + if ( _ev->button() == TQt::RightButton ) { // TODO: Handle anchor // TODO Stefan: ??? TQPoint p = mapToGlobal( _ev->pos() ); @@ -1625,7 +1625,7 @@ void Canvas::mouseDoubleClickEvent( TQMouseEvent* _ev) void Canvas::wheelEvent( TQWheelEvent* _ev ) { - if ( _ev->orientation() == Qt::Vertical ) + if ( _ev->orientation() == TQt::Vertical ) { if ( vertScrollBar() ) TQApplication::sendEvent( vertScrollBar(), _ev ); @@ -4667,7 +4667,7 @@ void VBorder::mousePressEvent( TQMouseEvent * _ev ) if ( !m_pView->koDocument()->isReadWrite() ) return; - if ( _ev->button() == Qt::LeftButton ) + if ( _ev->button() == TQt::LeftButton ) m_bMousePressed = true; const Sheet *sheet = m_pCanvas->activeSheet(); @@ -4733,7 +4733,7 @@ void VBorder::mousePressEvent( TQMouseEvent * _ev ) m_iSelectionAnchor = hit_row; if ( !m_pView->selectionInfo()->contains( TQPoint(1, hit_row) ) || - !( _ev->button() == Qt::RightButton ) || + !( _ev->button() == TQt::RightButton ) || !m_pView->selectionInfo()->isRowSelected() ) { TQPoint newMarker( 1, hit_row ); @@ -4755,7 +4755,7 @@ void VBorder::mousePressEvent( TQMouseEvent * _ev ) } } - if ( _ev->button() == Qt::RightButton ) + if ( _ev->button() == TQt::RightButton ) { TQPoint p = mapToGlobal( _ev->pos() ); m_pView->popupRowMenu( p ); @@ -5222,7 +5222,7 @@ void HBorder::mousePressEvent( TQMouseEvent * _ev ) if (!m_pView->koDocument()->isReadWrite()) return; - if ( _ev->button() == Qt::LeftButton ) + if ( _ev->button() == TQt::LeftButton ) m_bMousePressed = true; const Sheet *sheet = m_pCanvas->activeSheet(); @@ -5349,7 +5349,7 @@ void HBorder::mousePressEvent( TQMouseEvent * _ev ) m_iSelectionAnchor = hit_col; if ( !m_pView->selectionInfo()->contains( TQPoint( hit_col, 1 ) ) || - !( _ev->button() == Qt::RightButton ) || + !( _ev->button() == TQt::RightButton ) || !m_pView->selectionInfo()->isColumnSelected() ) { TQPoint newMarker( hit_col, 1 ); @@ -5371,7 +5371,7 @@ void HBorder::mousePressEvent( TQMouseEvent * _ev ) } } - if ( _ev->button() == Qt::RightButton ) + if ( _ev->button() == TQt::RightButton ) { TQPoint p = mapToGlobal( _ev->pos() ); m_pView->popupColumnMenu( p ); |