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/editors/matrix/MatrixElement.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/editors/matrix/MatrixElement.h')
-rw-r--r-- | src/gui/editors/matrix/MatrixElement.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/editors/matrix/MatrixElement.h b/src/gui/editors/matrix/MatrixElement.h index d330991..921297c 100644 --- a/src/gui/editors/matrix/MatrixElement.h +++ b/src/gui/editors/matrix/MatrixElement.h @@ -27,11 +27,11 @@ #define _RG_MATRIXELEMENT_H_ #include "base/ViewElement.h" -#include <qbrush.h> -#include <qcanvas.h> +#include <tqbrush.h> +#include <tqcanvas.h> #include "QCanvasMatrixRectangle.h" -class QColor; +class TQColor; namespace Rosegarden @@ -42,7 +42,7 @@ class Event; class MatrixElement : public ViewElement { - typedef std::vector <QCanvasRectangle *> OverlapRectangles; + typedef std::vector <TQCanvasRectangle *> OverlapRectangles; public: @@ -50,7 +50,7 @@ public: virtual ~MatrixElement(); - void setCanvas(QCanvas* c); + void setCanvas(TQCanvas* c); /** * Returns the actual x coordinate of the element on the canvas @@ -94,8 +94,8 @@ public: /* * Set the colour of the element */ - void setColour(const QColor &colour) - { m_canvasRect->setBrush(QBrush(colour)); } + void setColour(const TQColor &colour) + { m_canvasRect->setBrush(TQBrush(colour)); } /** * Draws overlap rectangles (if any) @@ -112,12 +112,12 @@ public: * If element rectangle is currently visible gets its size and returns true. * Returns false if element rectangle is undefined or not visible. */ - bool getVisibleRectangle(QRect &rectangle); + bool getVisibleRectangle(TQRect &rectangle); /** * Redraw overlap rectangles of all matrix elements colliding with rect */ - void redrawOverlaps(QRect rect); + void redrawOverlaps(TQRect rect); protected: |