diff options
Diffstat (limited to 'src/gui/editors/segment/segmentcanvas/CompositionRect.h')
-rw-r--r-- | src/gui/editors/segment/segmentcanvas/CompositionRect.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/gui/editors/segment/segmentcanvas/CompositionRect.h b/src/gui/editors/segment/segmentcanvas/CompositionRect.h index 3c3d2b6..45c5f50 100644 --- a/src/gui/editors/segment/segmentcanvas/CompositionRect.h +++ b/src/gui/editors/segment/segmentcanvas/CompositionRect.h @@ -26,16 +26,16 @@ #ifndef _RG_COMPOSITIONRECT_H_ #define _RG_COMPOSITIONRECT_H_ -#include <qbrush.h> -#include <qcolor.h> -#include <qpen.h> -#include <qrect.h> -#include <qstring.h> -#include <qvaluevector.h> +#include <tqbrush.h> +#include <tqcolor.h> +#include <tqpen.h> +#include <tqrect.h> +#include <tqstring.h> +#include <tqvaluevector.h> -class QSize; -class QPoint; +class TQSize; +class TQPoint; namespace Rosegarden @@ -44,22 +44,22 @@ namespace Rosegarden class CompositionRect : public QRect { public: - typedef QValueVector<int> repeatmarks; + typedef TQValueVector<int> repeatmarks; friend bool operator<(const CompositionRect&, const CompositionRect&); - CompositionRect() : QRect(), m_selected(false), + CompositionRect() : TQRect(), m_selected(false), m_needUpdate(false), m_brush(DefaultBrushColor), m_pen(DefaultPenColor) {}; - CompositionRect(const QRect& r) : QRect(r), m_resized(false), m_selected(false), + CompositionRect(const TQRect& r) : TQRect(r), m_resized(false), m_selected(false), m_needUpdate(false), m_brush(DefaultBrushColor), m_pen(DefaultPenColor), m_z(0) {}; - CompositionRect(const QPoint & topLeft, const QPoint & bottomRight) - : QRect(topLeft, bottomRight), m_resized(false), m_selected(false), + CompositionRect(const TQPoint & topLeft, const TQPoint & bottomRight) + : TQRect(topLeft, bottomRight), m_resized(false), m_selected(false), m_needUpdate(false), m_brush(DefaultBrushColor), m_pen(DefaultPenColor), m_z(0) {}; - CompositionRect(const QPoint & topLeft, const QSize & size) - : QRect(topLeft, size), m_resized(false), m_selected(false), + CompositionRect(const TQPoint & topLeft, const TQSize & size) + : TQRect(topLeft, size), m_resized(false), m_selected(false), m_needUpdate(false), m_brush(DefaultBrushColor), m_pen(DefaultPenColor), m_z(0) {}; CompositionRect(int left, int top, int width, int height) - : QRect(left, top, width, height), m_resized(false), m_selected(false), + : TQRect(left, top, width, height), m_resized(false), m_selected(false), m_needUpdate(false), m_brush(DefaultBrushColor), m_pen(DefaultPenColor), m_z(0) {}; void setResized(bool s) { m_resized = s; } @@ -73,10 +73,10 @@ public: int z() const { return m_z; } // brush, pen draw info - void setBrush(QBrush b) { m_brush = b; } - QBrush getBrush() const { return m_brush; } - void setPen(QPen b) { m_pen = b; } - QPen getPen() const { return m_pen; } + void setBrush(TQBrush b) { m_brush = b; } + TQBrush getBrush() const { return m_brush; } + void setPen(TQPen b) { m_pen = b; } + TQPen getPen() const { return m_pen; } // repeating segments void setRepeatMarks(const repeatmarks& rm) { m_repeatMarks = rm; } @@ -84,21 +84,21 @@ public: bool isRepeating() const { return m_repeatMarks.size() > 0; } int getBaseWidth() const { return m_baseWidth; } void setBaseWidth(int bw) { m_baseWidth = bw; } - QString getLabel() const { return m_label; } - void setLabel(QString l) { m_label = l; } + TQString getLabel() const { return m_label; } + void setLabel(TQString l) { m_label = l; } - static const QColor DefaultPenColor; - static const QColor DefaultBrushColor; + static const TQColor DefaultPenColor; + static const TQColor DefaultBrushColor; protected: bool m_resized; bool m_selected; bool m_needUpdate; - QBrush m_brush; - QPen m_pen; + TQBrush m_brush; + TQPen m_pen; repeatmarks m_repeatMarks; int m_baseWidth; - QString m_label; + TQString m_label; int m_z; }; |