diff options
Diffstat (limited to 'kghostview/scrollbox.cpp')
-rw-r--r-- | kghostview/scrollbox.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kghostview/scrollbox.cpp b/kghostview/scrollbox.cpp index e50f353a..10b1a6eb 100644 --- a/kghostview/scrollbox.cpp +++ b/kghostview/scrollbox.cpp @@ -31,15 +31,15 @@ ScrollBox::ScrollBox( TQWidget* parent, const char* name ) void ScrollBox::mousePressEvent( TQMouseEvent* e ) { mouse = e->pos(); - if( e->button() == Qt::RightButton ) + if( e->button() == TQt::RightButton ) emit button3Pressed(); - if( e->button() == Qt::MidButton ) + if( e->button() == TQt::MidButton ) emit button2Pressed(); } void ScrollBox::mouseMoveEvent( TQMouseEvent* e ) { - if( e->state() != Qt::LeftButton ) + if( e->state() != TQt::LeftButton ) return; int dx = ( e->pos().x() - mouse.x() ) * pagesize.width() / width(); |