summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrCanvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpresenter/KPrCanvas.cpp')
-rw-r--r--kpresenter/KPrCanvas.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kpresenter/KPrCanvas.cpp b/kpresenter/KPrCanvas.cpp
index 7903e2b76..04a81ae32 100644
--- a/kpresenter/KPrCanvas.cpp
+++ b/kpresenter/KPrCanvas.cpp
@@ -698,13 +698,13 @@ void KPrCanvas::mousePressEvent( TQMouseEvent *e )
m_currentTextObjectView->mousePressEvent(e, m_view->zoomHandler()->ptToLayoutUnitPix( pos ) ); // in LU pixels
mousePressed = true;
m_view->enableAutoScroll();
- if(e->button() == Qt::RightButton)
+ if(e->button() == TQt::RightButton)
{
m_currentTextObjectView->showPopup( m_view, TQCursor::pos(), m_view->actionList() );
m_view->disableAutoScroll();
mousePressed=false;
}
- else if( e->button() == Qt::MidButton )
+ else if( e->button() == TQt::MidButton )
{
TQApplication::clipboard()->setSelectionMode( true );
m_currentTextObjectView->paste();
@@ -722,7 +722,7 @@ void KPrCanvas::mousePressEvent( TQMouseEvent *e )
exitEditMode();
if ( editMode ) {
- if ( e->button() == Qt::LeftButton ) {
+ if ( e->button() == TQt::LeftButton ) {
mousePressed = true;
m_view->enableAutoScroll();
@@ -978,7 +978,7 @@ void KPrCanvas::mousePressEvent( TQMouseEvent *e )
}
}
- if ( e->button() == Qt::RightButton && ( toolEditMode == INS_POLYLINE || toolEditMode == INS_CLOSED_POLYLINE )
+ if ( e->button() == TQt::RightButton && ( toolEditMode == INS_POLYLINE || toolEditMode == INS_CLOSED_POLYLINE )
&& !m_pointArray.isNull() && m_drawPolyline ) {
if( m_indexPointArray > 1)
{
@@ -1026,7 +1026,7 @@ void KPrCanvas::mousePressEvent( TQMouseEvent *e )
return;
}
- if ( e->button() == Qt::RightButton && ( toolEditMode == INS_CUBICBEZIERCURVE || toolEditMode == INS_QUADRICBEZIERCURVE
+ if ( e->button() == TQt::RightButton && ( toolEditMode == INS_CUBICBEZIERCURVE || toolEditMode == INS_QUADRICBEZIERCURVE
|| toolEditMode == INS_CLOSED_CUBICBEZIERCURVE || toolEditMode == INS_CLOSED_QUADRICBEZIERCURVE )
&& !m_pointArray.isNull() && m_drawCubicBezierCurve ) {
if ( m_drawLineWithCubicBezierCurve ) {
@@ -1047,7 +1047,7 @@ void KPrCanvas::mousePressEvent( TQMouseEvent *e )
return;
}
- if ( e->button() == Qt::RightButton && toolEditMode == TEM_MOUSE ) {
+ if ( e->button() == TQt::RightButton && toolEditMode == TEM_MOUSE ) {
KPrObject * obj = getObjectAt( docPoint );
if ( obj )
{
@@ -1070,18 +1070,18 @@ void KPrCanvas::mousePressEvent( TQMouseEvent *e )
modType = MT_NONE;
}
- else if( e->button() == Qt::RightButton && toolEditMode == TEM_ZOOM ) {
+ else if( e->button() == TQt::RightButton && toolEditMode == TEM_ZOOM ) {
TQPoint pnt = TQCursor::pos();
mousePressed = false;
m_view->disableAutoScroll();
m_view->openPopupMenuZoom( pnt );
}
- else if( e->button() == Qt::RightButton && toolEditMode != TEM_MOUSE ) {
+ else if( e->button() == TQt::RightButton && toolEditMode != TEM_MOUSE ) {
//deactivate tools when you click on right button
setToolEditMode( TEM_MOUSE );
}
} else {
- if ( e->button() == Qt::LeftButton ) {
+ if ( e->button() == TQt::LeftButton ) {
if ( m_drawMode ) {
setCursor( KPrUtils::penCursor() );
m_drawLineInDrawMode = true;
@@ -1091,9 +1091,9 @@ void KPrCanvas::mousePressEvent( TQMouseEvent *e )
}
else
m_view->screenNext();
- } else if ( e->button() == Qt::MidButton )
+ } else if ( e->button() == TQt::MidButton )
m_view->screenPrev();
- else if ( e->button() == Qt::RightButton ) {
+ else if ( e->button() == TQt::RightButton ) {
if ( !m_drawMode && !spManualSwitch() )
{
finishObjectEffects();
@@ -1151,7 +1151,7 @@ void KPrCanvas::mouseReleaseEvent( TQMouseEvent *e )
return;
}
- if ( e->button() != Qt::LeftButton )
+ if ( e->button() != TQt::LeftButton )
return;
if ( m_drawMode ) {
@@ -2113,7 +2113,7 @@ void KPrCanvas::keyPressEvent( TQKeyEvent *e )
m_gl.repaintAfterSnapping();
}
// undo snapping for move by mouse
- if ( e->state() & Qt::LeftButton && m_isMoving )
+ if ( e->state() & TQt::LeftButton && m_isMoving )
{
moveObjectsByMouse( m_origMousePos, e->state() & AltButton || e->state() & ControlButton );
}