summaryrefslogtreecommitdiffstats
path: root/kig/kig/kig_view.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kig/kig/kig_view.cpp')
-rw-r--r--kig/kig/kig_view.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kig/kig/kig_view.cpp b/kig/kig/kig_view.cpp
index f55f23f3..59df9d79 100644
--- a/kig/kig/kig_view.cpp
+++ b/kig/kig/kig_view.cpp
@@ -89,32 +89,32 @@ void KigWidget::paintEvent(TQPaintEvent*)
void KigWidget::mousePressEvent (TQMouseEvent* e)
{
- if( e->button() & Qt::LeftButton )
+ if( e->button() & TQt::LeftButton )
return mpart->mode()->leftClicked( e, this );
- if ( e->button() & Qt::MidButton )
+ if ( e->button() & TQt::MidButton )
return mpart->mode()->midClicked( e, this );
- if ( e->button() & Qt::RightButton )
+ if ( e->button() & TQt::RightButton )
return mpart->mode()->rightClicked( e, this );
}
void KigWidget::mouseMoveEvent (TQMouseEvent* e)
{
- if( e->state() & Qt::LeftButton )
+ if( e->state() & TQt::LeftButton )
return mpart->mode()->leftMouseMoved( e, this );
- if ( e->state() & Qt::MidButton )
+ if ( e->state() & TQt::MidButton )
return mpart->mode()->midMouseMoved( e, this );
- if ( e->state() & Qt::RightButton )
+ if ( e->state() & TQt::RightButton )
return mpart->mode()->rightMouseMoved( e, this );
return mpart->mode()->mouseMoved( e, this );
}
void KigWidget::mouseReleaseEvent (TQMouseEvent* e)
{
- if( e->state() & Qt::LeftButton )
+ if( e->state() & TQt::LeftButton )
return mpart->mode()->leftReleased( e, this );
- if ( e->state() & Qt::MidButton )
+ if ( e->state() & TQt::MidButton )
return mpart->mode()->midReleased( e, this );
- if ( e->state() & Qt::RightButton )
+ if ( e->state() & TQt::RightButton )
return mpart->mode()->rightReleased( e, this );
}
@@ -297,14 +297,14 @@ KigView::KigView( KigPart* part,
connect( part, TQT_SIGNAL( recenterScreen() ), this, TQT_SLOT( slotInternalRecenterScreen() ) );
mlayout = new TQGridLayout( this, 2, 2 );
- mrightscroll = new TQScrollBar(Qt::Vertical, this, "Right Scrollbar" );
+ mrightscroll = new TQScrollBar(TQt::Vertical, this, "Right Scrollbar" );
// TODO: make this configurable...
mrightscroll->setTracking( true );
connect( mrightscroll, TQT_SIGNAL( valueChanged( int ) ),
this, TQT_SLOT( slotRightScrollValueChanged( int ) ) );
connect( mrightscroll, TQT_SIGNAL( sliderReleased() ),
this, TQT_SLOT( updateScrollBars() ) );
- mbottomscroll = new TQScrollBar(Qt::Horizontal, this, "Bottom Scrollbar" );
+ mbottomscroll = new TQScrollBar(TQt::Horizontal, this, "Bottom Scrollbar" );
connect( mbottomscroll, TQT_SIGNAL( valueChanged( int ) ),
this, TQT_SLOT( slotBottomScrollValueChanged( int ) ) );
connect( mbottomscroll, TQT_SIGNAL( sliderReleased() ),
@@ -451,8 +451,8 @@ TQSize KigWidget::sizeHint() const
void KigWidget::wheelEvent( TQWheelEvent* e )
{
int delta = e->delta();
- Qt::Orientation orient = e->orientation();
- if ( orient == Qt::Vertical )
+ TQt::Orientation orient = e->orientation();
+ if ( orient == TQt::Vertical )
mview->scrollVertical( delta );
else
mview->scrollHorizontal( delta );