summaryrefslogtreecommitdiffstats
path: root/kghostview/kgvpageview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kghostview/kgvpageview.cpp')
-rw-r--r--kghostview/kgvpageview.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/kghostview/kgvpageview.cpp b/kghostview/kgvpageview.cpp
index 4761391b..10651383 100644
--- a/kghostview/kgvpageview.cpp
+++ b/kghostview/kgvpageview.cpp
@@ -27,8 +27,8 @@ KGVPageView::KGVPageView( TQWidget* parent, const char* name )
{
_page = 0;
- setFocusPolicy( TQ_StrongFocus );
- viewport()->setFocusPolicy( TQ_WheelFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
+ viewport()->setFocusPolicy( TQWidget::WheelFocus );
}
void KGVPageView::setPage( TQWidget* page )
@@ -52,7 +52,7 @@ bool KGVPageView::atBottom() const
bool KGVPageView::eventFilter( TQObject* o, TQEvent* e )
{
- if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(_page) && e->type() == TQEvent::Resize ) {
+ if ( o == _page && e->type() == TQEvent::Resize ) {
// We need to call TQScrollView::eventFilter before centerContents,
// otherwise a loop will be introduced.
bool result = TQScrollView::eventFilter( o, e );
@@ -88,16 +88,16 @@ void KGVPageView::wheelEvent( TQWheelEvent *e )
}
void KGVPageView::mousePressEvent( TQMouseEvent * e )
{
- if ( e->button() & Qt::LeftButton )
+ if ( e->button() & TQt::LeftButton )
{
_dragGrabPos = e -> globalPos();
setCursor( sizeAllCursor );
}
- else if ( e->button() & Qt::MidButton )
+ else if ( e->button() & TQt::MidButton )
{
emit ReadDown();
}
- else if ( e -> button() & Qt::RightButton )
+ else if ( e -> button() & TQt::RightButton )
{
emit rightClick();
}
@@ -105,7 +105,7 @@ void KGVPageView::mousePressEvent( TQMouseEvent * e )
void KGVPageView::mouseReleaseEvent( TQMouseEvent *e )
{
- if ( e -> button() & Qt::LeftButton )
+ if ( e -> button() & TQt::LeftButton )
{
setCursor( arrowCursor );
}
@@ -113,7 +113,7 @@ void KGVPageView::mouseReleaseEvent( TQMouseEvent *e )
void KGVPageView::mouseMoveEvent( TQMouseEvent * e )
{
- if ( e->state() & Qt::LeftButton )
+ if ( e->state() & TQt::LeftButton )
{
TQPoint delta = _dragGrabPos - e->globalPos();
scrollBy( delta.x(), delta.y() );
@@ -250,5 +250,3 @@ void KGVPageView::centerContents()
}
#include "kgvpageview.moc"
-
-// vim:sw=4:sts=4:ts=8:noet