summaryrefslogtreecommitdiffstats
path: root/kword/KWCanvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kword/KWCanvas.cpp')
-rw-r--r--kword/KWCanvas.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kword/KWCanvas.cpp b/kword/KWCanvas.cpp
index 6dc6bbb3..fb0889f6 100644
--- a/kword/KWCanvas.cpp
+++ b/kword/KWCanvas.cpp
@@ -413,13 +413,13 @@ void KWCanvas::contentsMousePressEvent( TQMouseEvent *e )
KoPoint docPoint = m_doc->unzoomPoint( normalPoint );
- if ( e->button() == Qt::LeftButton )
+ if ( e->button() == TQt::LeftButton )
{
m_mousePressed = true;
}
// Only edit-mode (and only LMB) allowed on read-only documents (to select text)
- if ( !m_doc->isReadWrite() && ( m_mouseMode != MM_EDIT || e->button() != Qt::LeftButton ) )
+ if ( !m_doc->isReadWrite() && ( m_mouseMode != MM_EDIT || e->button() != TQt::LeftButton ) )
return;
if ( m_printing )
return;
@@ -450,7 +450,7 @@ void KWCanvas::contentsMousePressEvent( TQMouseEvent *e )
// RMB inside a frame unselects too, except when
// right-clicking on a selected frame
KWFrameView *view = m_frameViewManager->view( docPoint, KWFrameViewManager::frameOnTop );
- if ( ! ( e->button() == Qt::RightButton && view && view->selected() ) )
+ if ( ! ( e->button() == TQt::RightButton && view && view->selected() ) )
selectAllFrames( false );
KWFrame * frame = view ? view->frame() : 0L;
@@ -529,18 +529,18 @@ void KWCanvas::contentsMousePressEvent( TQMouseEvent *e )
break;
case MM_CREATE_TEXT: case MM_CREATE_PART: case MM_CREATE_TABLE:
case MM_CREATE_FORMULA:
- if ( e->button() == Qt::LeftButton )
+ if ( e->button() == TQt::LeftButton )
mpCreate( normalPoint, e->state() & TQt::ShiftButton);
break;
case MM_CREATE_PIX:
- if ( e->button() == Qt::LeftButton )
+ if ( e->button() == TQt::LeftButton )
mpCreatePixmap( normalPoint, e->state() & TQt::ShiftButton );
break;
default: break;
}
m_scrollTimer->start( 50 );
- if ( e->button() == Qt::MidButton ) {
+ if ( e->button() == TQt::MidButton ) {
if ( m_doc->isReadWrite() && m_currentFrameSetEdit && m_mouseMode == MM_EDIT )
{
TQApplication::clipboard()->setSelectionMode( true );
@@ -548,7 +548,7 @@ void KWCanvas::contentsMousePressEvent( TQMouseEvent *e )
TQApplication::clipboard()->setSelectionMode( false );
}
}
- else if ( e->button() == Qt::RightButton ) {
+ else if ( e->button() == TQt::RightButton ) {
if(!m_doc->isReadWrite()) // The popups are not available in readonly mode, since the GUI isn't built...
return;
if ( m_deleteMovingRect )
@@ -1816,10 +1816,10 @@ bool KWCanvas::eventFilter( TQObject *o, TQEvent *e )
TQPoint vP = m_viewMode->normalToView(normalPoint);
TQPoint gP = mapToGlobal(vP);
TQMouseEvent mevPress(TQEvent::MouseButtonPress, vP,
- gP, Qt::LeftButton, 0);
+ gP, TQt::LeftButton, 0);
contentsMousePressEvent(&mevPress);
TQMouseEvent mevRelease(TQEvent::MouseButtonRelease, vP,
- gP, Qt::LeftButton, 0);
+ gP, TQt::LeftButton, 0);
contentsMouseReleaseEvent(&mevRelease);
}
else if ( keyev->key() == TQt::Key_Escape ) {
@@ -2062,13 +2062,13 @@ InteractionPolicy::InteractionPolicy(KWCanvas *parent, bool doInit, bool include
}
InteractionPolicy* InteractionPolicy::createPolicy(KWCanvas *parent, MouseMeaning meaning, KoPoint &point, TQt::ButtonState buttonState, TQt::ButtonState keyState) {
- if(buttonState & Qt::LeftButton || buttonState & Qt::RightButton) {
+ if(buttonState & TQt::LeftButton || buttonState & TQt::RightButton) {
// little inner class to make sure we don't duplicate code
class Selector {
public:
Selector(KWCanvas *canvas, KoPoint &point, TQt::ButtonState buttonState, TQt::ButtonState keyState) :
m_canvas(canvas), m_point(point), m_state(keyState) {
- m_leftClick = buttonState & Qt::LeftButton;
+ m_leftClick = buttonState & TQt::LeftButton;
KWFrameView *view = canvas->frameViewManager()->view(point,
KWFrameViewManager::frameOnTop);
m_doSomething = (view && !view->selected());
@@ -2445,7 +2445,7 @@ void FrameMovePolicy::finishInteraction() {
FrameSelectPolicy::FrameSelectPolicy(KWCanvas *parent, MouseMeaning meaning, KoPoint &point, TQt::ButtonState buttonState, TQt::ButtonState keyState)
: InteractionPolicy(parent, false) {
- bool leftButton = buttonState & Qt::LeftButton;
+ bool leftButton = buttonState & TQt::LeftButton;
// this is a special case; if a frame that is curently being edited is 'selected' on the border
// we redirect that click to the text part of the frame.
// this means we give the user a lot more space to click on the left side of the frame to