summaryrefslogtreecommitdiffstats
path: root/kghostview/scrollbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kghostview/scrollbox.cpp')
-rw-r--r--kghostview/scrollbox.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/kghostview/scrollbox.cpp b/kghostview/scrollbox.cpp
index 87d68418..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();
@@ -130,5 +130,3 @@ void ScrollBox::clear()
}
#include "scrollbox.moc"
-
-// vim:sw=4:sts=4:ts=8:noet