summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/segment/segmentcanvas/CompositionItemHelper.cpp
diff options
context:
space:
mode:
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,