diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kicker/libkicker/panner.h | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/libkicker/panner.h')
-rw-r--r-- | kicker/libkicker/panner.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kicker/libkicker/panner.h b/kicker/libkicker/panner.h index 6657c9a76..ee1bc026a 100644 --- a/kicker/libkicker/panner.h +++ b/kicker/libkicker/panner.h @@ -24,7 +24,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #ifndef __panner_h__ #define __panner_h__ -#include <qwidget.h> +#include <tqwidget.h> #include "simplebutton.h" @@ -36,17 +36,17 @@ class KDE_EXPORT Panner : public QWidget Q_OBJECT public: - Panner( QWidget* parent, const char* name = 0 ); + Panner( TQWidget* parent, const char* name = 0 ); ~Panner(); - QSize minimumSizeHint() const { return QWidget::minimumSizeHint(); } + TQSize minimumSizeHint() const { return TQWidget::minimumSizeHint(); } Qt::Orientation orientation() const { return _orient; } virtual void setOrientation(Orientation orientation); - QWidget *viewport() const { return _viewport; } + TQWidget *viewport() const { return _viewport; } - QRect contentsRect() const { return QRect(0, 0, width(), height()); } + TQRect contentsRect() const { return TQRect(0, 0, width(), height()); } int contentsX() const { return _viewport ? -_viewport->x() : 0; } int contentsY() const { return _viewport ? -_viewport->y() : 0; } @@ -59,14 +59,14 @@ public: void contentsToViewport( int x, int y, int& vx, int& vy ) const; void viewportToContents( int vx, int vy, int& x, int& y ) const; - QPoint contentsToViewport( const QPoint& ) const; - QPoint viewportToContents( const QPoint& ) const; + QPoint contentsToViewport( const TQPoint& ) const; + QPoint viewportToContents( const TQPoint& ) const; - void addChild(QWidget *child) { child->show(); } - void removeChild(QWidget *child) { child->hide(); } - int childX(QWidget *child) const { return child->x(); } - int childY(QWidget *child) const { return child->y(); } - void moveChild(QWidget *child, int x, int y) { child->move(x, y); } + void addChild(TQWidget *child) { child->show(); } + void removeChild(TQWidget *child) { child->hide(); } + int childX(TQWidget *child) const { return child->x(); } + int childY(TQWidget *child) const { return child->y(); } + void moveChild(TQWidget *child, int x, int y) { child->move(x, y); } void ensureVisible( int x, int y ); void ensureVisible( int x, int y, int xmargin, int ymargin ); @@ -85,13 +85,13 @@ signals: void contentsMoving(int x, int y); protected: - virtual bool eventFilter( QObject *obj, QEvent *e ); - virtual void resizeEvent(QResizeEvent *ev); - virtual void viewportResizeEvent( QResizeEvent* ); - virtual void viewportMousePressEvent( QMouseEvent* ); - virtual void viewportMouseReleaseEvent( QMouseEvent* ); - virtual void viewportMouseDoubleClickEvent( QMouseEvent* ); - virtual void viewportMouseMoveEvent( QMouseEvent* ); + virtual bool eventFilter( TQObject *obj, TQEvent *e ); + virtual void resizeEvent(TQResizeEvent *ev); + virtual void viewportResizeEvent( TQResizeEvent* ); + virtual void viewportMousePressEvent( TQMouseEvent* ); + virtual void viewportMouseReleaseEvent( TQMouseEvent* ); + virtual void viewportMouseDoubleClickEvent( TQMouseEvent* ); + virtual void viewportMouseMoveEvent( TQMouseEvent* ); private: void setupButtons(); @@ -99,14 +99,14 @@ private: void updateScrollButtons(); Orientation _orient; - QBoxLayout *_layout; + TQBoxLayout *_layout; SimpleArrowButton *_luSB; // Left Scroll Button SimpleArrowButton *_rdSB; // Right Scroll Button - QTimer *_updateScrollButtonsTimer; - QTimer *_scrollTimer; + TQTimer *_updateScrollButtonsTimer; + TQTimer *_scrollTimer; - QWidget *_clipper; - QWidget *_viewport; + TQWidget *_clipper; + TQWidget *_viewport; int _cwidth, _cheight; int _cx, _cy; int _step; |