From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kghostview/kgvpageview.h | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'kghostview/kgvpageview.h') diff --git a/kghostview/kgvpageview.h b/kghostview/kgvpageview.h index 9a1abac3..6f76f458 100644 --- a/kghostview/kgvpageview.h +++ b/kghostview/kgvpageview.h @@ -20,10 +20,10 @@ #ifndef KGVPAGEVIEW_H #define KGVPAGEVIEW_H -#include +#include /** - * KGVPageView is a customized QScrollView, which can hold one page. This page + * KGVPageView is a customized TQScrollView, which can hold one page. This page * will be centered on the viewport. Furthermore it adds the ability to scroll * the page by dragging it using the mouse. */ @@ -32,11 +32,11 @@ class KGVPageView : public QScrollView Q_OBJECT public: - KGVPageView( QWidget* parent = 0, const char* name = 0 ); + KGVPageView( TQWidget* parent = 0, const char* name = 0 ); ~KGVPageView() { ; } - void setPage( QWidget* ); - QWidget* page() const { return _page; } + void setPage( TQWidget* ); + TQWidget* page() const { return _page; } /** * Return true if the top resp. bottom of the page is visible. @@ -52,7 +52,7 @@ public: /** * @reimplemented */ - bool eventFilter( QObject*, QEvent* ); + bool eventFilter( TQObject*, TQEvent* ); public slots: bool readUp(); @@ -65,8 +65,8 @@ public slots: void scrollTop(); signals: - void viewSizeChanged( const QSize& ); - void pageSizeChanged( const QSize& ); + void viewSizeChanged( const TQSize& ); + void pageSizeChanged( const TQSize& ); void nextPage(); void zoomOut(); void zoomIn(); @@ -76,18 +76,18 @@ signals: void ReadDown(); protected: - virtual void keyPressEvent( QKeyEvent* ); + virtual void keyPressEvent( TQKeyEvent* ); /** - * Reimplemented to from QScrollView to make sure that the page is centered + * Reimplemented to from TQScrollView to make sure that the page is centered * when it fits in the viewport. */ - virtual void viewportResizeEvent( QResizeEvent* ); + virtual void viewportResizeEvent( TQResizeEvent* ); - virtual void mousePressEvent( QMouseEvent *e ); - virtual void mouseReleaseEvent( QMouseEvent *e ); - virtual void mouseMoveEvent( QMouseEvent *e ); - virtual void wheelEvent( QWheelEvent * ); + virtual void mousePressEvent( TQMouseEvent *e ); + virtual void mouseReleaseEvent( TQMouseEvent *e ); + virtual void mouseMoveEvent( TQMouseEvent *e ); + virtual void wheelEvent( TQWheelEvent * ); /** * If the viewport is larger than the page, center the page on the @@ -96,8 +96,8 @@ protected: void centerContents(); private: - QPoint _dragGrabPos; - QWidget* _page; + TQPoint _dragGrabPos; + TQWidget* _page; }; #endif -- cgit v1.2.1