summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/ScrollBox.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/ScrollBox.h')
-rw-r--r--src/gui/widgets/ScrollBox.h42
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;
};