diff options
Diffstat (limited to 'libkscan/img_canvas.cpp')
-rw-r--r-- | libkscan/img_canvas.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libkscan/img_canvas.cpp b/libkscan/img_canvas.cpp index d673b284..0003520e 100644 --- a/libkscan/img_canvas.cpp +++ b/libkscan/img_canvas.cpp @@ -114,8 +114,8 @@ ImageCanvas::ImageCanvas(TQWidget *parent, update_scaled_pixmap(); // timer-Start and stop - connect( this, TQT_SIGNAL( newRect()), TQT_SLOT( newRectSlot())); - connect( this, TQT_SIGNAL( noRect()), TQT_SLOT( noRectSlot())); + connect( this, TQ_SIGNAL( newRect()), TQ_SLOT( newRectSlot())); + connect( this, TQ_SIGNAL( noRect()), TQ_SLOT( noRectSlot())); //zoomOut();scrollview/scrollview viewport()->setCursor( crossCursor ); @@ -457,7 +457,7 @@ void ImageCanvas::viewportMousePressEvent(TQMouseEvent *ev) { if( ! acquired || ! image ) return; - if(ev->button()==Qt::LeftButton ) + if(ev->button()==TQt::LeftButton ) { int cx = contentsX(), cy = contentsY(); @@ -486,7 +486,7 @@ void ImageCanvas::viewportMousePressEvent(TQMouseEvent *ev) void ImageCanvas::viewportMouseReleaseEvent(TQMouseEvent *ev) { - if(ev->button()!=Qt::LeftButton || !acquired ) return; + if(ev->button()!=TQt::LeftButton || !acquired ) return; //// debug( "Mouse Release at %d/%d", ev->x(), ev->y()); if(moving!=MOVE_NONE) { @@ -783,7 +783,7 @@ void ImageCanvas::drawHAreaBorder(TQPainter &p,int x1,int x2,int y,int r) } else if(!acquired) p.setPen(TQPen(TQColor(150,150,150))); for(;;) { - if(TQT_TQRECT_OBJECT(rect()).contains(TQPoint(x1,y))) { + if(rect().contains(TQPoint(x1,y))) { if( r && acquired ) { int re_x1, re_y; inv_scale_matrix.map( x1+cx, y+cy, &re_x1, &re_y ); @@ -826,7 +826,7 @@ void ImageCanvas::drawVAreaBorder(TQPainter &p, int x, int y1, int y2, int r ) if( !acquired ) p.setPen( TQPen( TQColor(150,150,150) ) ); for(;;) { - if(TQT_TQRECT_OBJECT(rect()).contains( TQPoint(x,y1) )) { + if(rect().contains( TQPoint(x,y1) )) { if( r && acquired ) { int re_y1, re_x; inv_scale_matrix.map( x+cx, y1+cy, &re_x, &re_y1 ); |