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.cpp | |
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.cpp')
-rw-r--r-- | src/gui/editors/matrix/MatrixElement.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/editors/matrix/MatrixElement.cpp b/src/gui/editors/matrix/MatrixElement.cpp index 1101284..c706c87 100644 --- a/src/gui/editors/matrix/MatrixElement.cpp +++ b/src/gui/editors/matrix/MatrixElement.cpp @@ -32,9 +32,9 @@ #include "gui/general/GUIPalette.h" #include "QCanvasMatrixDiamond.h" #include "QCanvasMatrixRectangle.h" -#include <qbrush.h> -#include <qcanvas.h> -#include <qcolor.h> +#include <tqbrush.h> +#include <tqcanvas.h> +#include <tqcolor.h> namespace Rosegarden @@ -62,7 +62,7 @@ MatrixElement::~MatrixElement() removeOverlapRectangles(); } -void MatrixElement::setCanvas(QCanvas* c) +void MatrixElement::setCanvas(TQCanvas* c) { if (!m_canvasRect->canvas()) { @@ -86,10 +86,10 @@ void MatrixElement::drawOverlapRectangles() { if (m_overlapRectangles) removeOverlapRectangles(); - QRect elRect = m_canvasRect->rect(); + TQRect elRect = m_canvasRect->rect(); QCanvasItemList itemList = m_canvasRect->canvas()->collisions(elRect); - QCanvasItemList::Iterator it; + TQCanvasItemList::Iterator it; MatrixElement* mel = 0; @@ -101,14 +101,14 @@ void MatrixElement::drawOverlapRectangles() // Element does'nt collide with itself if (mRect == m_canvasRect) continue; - QRect rect = mRect->rect() & elRect; + TQRect rect = mRect->rect() & elRect; if (!rect.isEmpty()) { if (!m_overlapRectangles) { m_overlapRectangles = new OverlapRectangles(); } - QCanvasRectangle * - overlap = new QCanvasRectangle(rect, m_canvasRect->canvas()); + TQCanvasRectangle * + overlap = new TQCanvasRectangle(rect, m_canvasRect->canvas()); overlap->setBrush(GUIPalette::getColour(GUIPalette::MatrixOverlapBlock)); overlap->setZ(getCanvasZ() + 1); overlap->show(); @@ -118,11 +118,11 @@ void MatrixElement::drawOverlapRectangles() } } -void MatrixElement::redrawOverlaps(QRect rect) +void MatrixElement::redrawOverlaps(TQRect rect) { QCanvasItemList itemList = m_canvasRect->canvas()->collisions(rect); - QCanvasItemList::Iterator it; + TQCanvasItemList::Iterator it; MatrixElement* mel = 0; for (it = itemList.begin(); it != itemList.end(); ++it) { @@ -147,7 +147,7 @@ void MatrixElement::removeOverlapRectangles() m_overlapRectangles = NULL; } -bool MatrixElement::getVisibleRectangle(QRect &rectangle) +bool MatrixElement::getVisibleRectangle(TQRect &rectangle) { if (m_canvasRect && m_canvasRect->isVisible()) { rectangle = m_canvasRect->rect(); |