From 11f31c37e5fa4889d9989f10272f44845449cb7b Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 6 Sep 2010 20:59:29 +0000 Subject: Initial TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../segment/segmentcanvas/CompositionItemHelper.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/gui/editors/segment/segmentcanvas/CompositionItemHelper.cpp') 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 -#include -#include +#include +#include +#include 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, -- cgit v1.2.1