diff options
| author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
|---|---|---|
| committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
| commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
| tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/widgets/ScrollBox.h | |
| parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
| download | rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip | |
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/widgets/ScrollBox.h')
| -rw-r--r-- | src/gui/widgets/ScrollBox.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/gui/widgets/ScrollBox.h b/src/gui/widgets/ScrollBox.h index 3f8140e..ebd99a8 100644 --- a/src/gui/widgets/ScrollBox.h +++ b/src/gui/widgets/ScrollBox.h @@ -30,15 +30,15 @@ #ifndef _RG_SCROLLBOX_H_ #define _RG_SCROLLBOX_H_ -#include <qframe.h> -#include <qpixmap.h> -#include <qpoint.h> -#include <qsize.h> +#include <tqframe.h> +#include <tqpixmap.h> +#include <tqpoint.h> +#include <tqsize.h> -class QWidget; -class QPainter; -class QMouseEvent; +class TQWidget; +class TQPainter; +class TQMouseEvent; namespace Rosegarden @@ -51,35 +51,35 @@ class ScrollBox: public QFrame public: enum SizeMode { FixWidth, FixHeight }; - ScrollBox(QWidget *parent = 0, + ScrollBox(TQWidget *parent = 0, SizeMode mode = FixWidth, const char *name = 0); public slots: - void setPageSize(const QSize&); - void setViewSize(const QSize&); - void setViewPos(const QPoint&); - void setViewPos(int x, int y) { setViewPos(QPoint(x, y)); } + void setPageSize(const TQSize&); + void setViewSize(const TQSize&); + void setViewPos(const TQPoint&); + void setViewPos(int x, int y) { setViewPos(TQPoint(x, y)); } void setViewX(int x); void setViewY(int y); - void setThumbnail(QPixmap img); + void setThumbnail(TQPixmap img); signals: - void valueChanged(const QPoint&); + void valueChanged(const TQPoint&); void valueChangedRelative(int dx, int dy); void button2Pressed(); void button3Pressed(); protected: - void mousePressEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - void drawContents(QPainter *); + void mousePressEvent(TQMouseEvent *); + void mouseMoveEvent(TQMouseEvent *); + void drawContents(TQPainter *); private: - QPoint m_viewpos; - QPoint m_mouse; - QSize m_pagesize; - QSize m_viewsize; + TQPoint m_viewpos; + TQPoint m_mouse; + TQSize m_pagesize; + TQSize m_viewsize; SizeMode m_sizeMode; }; |
