summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/segment/segmentcanvas/CompositionItemHelper.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/editors/segment/segmentcanvas/CompositionItemHelper.cpp
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-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/segment/segmentcanvas/CompositionItemHelper.cpp')
-rw-r--r--src/gui/editors/segment/segmentcanvas/CompositionItemHelper.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/editors/segment/segmentcanvas/CompositionItemHelper.cpp b/src/gui/editors/segment/segmentcanvas/CompositionItemHelper.cpp
index e1705cd..9579ba2 100644
--- a/src/gui/editors/segment/segmentcanvas/CompositionItemHelper.cpp
+++ b/src/gui/editors/segment/segmentcanvas/CompositionItemHelper.cpp
@@ -31,9 +31,9 @@
#include "misc/Debug.h"
#include "CompositionModel.h"
#include "CompositionItemImpl.h"
-#include <qcolor.h>
-#include <qpoint.h>
-#include <qrect.h>
+#include <tqcolor.h>
+#include <tqpoint.h>
+#include <tqrect.h>
namespace Rosegarden
{
@@ -60,7 +60,7 @@ timeT CompositionItemHelper::getEndTime(const CompositionItem& item, const Roseg
timeT t = 0;
if (item) {
- QRect itemRect = item->rect();
+ TQRect itemRect = item->rect();
t = std::max(grid.snapX(itemRect.x() + itemRect.width()), 0L);
@@ -102,8 +102,8 @@ void CompositionItemHelper::setEndTime(CompositionItem& item, timeT time,
{
if (item) {
int x = int(nearbyint(grid.getRulerScale()->getXForTime(time)));
- QRect r = item->rect();
- QPoint topRight = r.topRight();
+ TQRect r = item->rect();
+ TQPoint topRight = r.topRight();
topRight.setX(x);
r.setTopRight(topRight);
item->setWidth(r.width());
@@ -127,7 +127,7 @@ Rosegarden::Segment* CompositionItemHelper::getSegment(CompositionItem item)
CompositionItem CompositionItemHelper::makeCompositionItem(Rosegarden::Segment* segment)
{
- return CompositionItem(new CompositionItemImpl(*segment, QRect()));
+ return CompositionItem(new CompositionItemImpl(*segment, TQRect()));
}
CompositionItem CompositionItemHelper::findSiblingCompositionItem(const CompositionModel::itemcontainer& items,