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 --- .../editors/segment/segmentcanvas/SegmentMover.cpp | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/gui/editors/segment/segmentcanvas/SegmentMover.cpp') diff --git a/src/gui/editors/segment/segmentcanvas/SegmentMover.cpp b/src/gui/editors/segment/segmentcanvas/SegmentMover.cpp index a3d2a59..bc621fe 100644 --- a/src/gui/editors/segment/segmentcanvas/SegmentMover.cpp +++ b/src/gui/editors/segment/segmentcanvas/SegmentMover.cpp @@ -43,11 +43,11 @@ #include "SegmentToolBox.h" #include "SegmentSelector.h" #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include @@ -63,26 +63,26 @@ SegmentMover::SegmentMover(CompositionView *c, RosegardenGUIDoc *d) void SegmentMover::ready() { m_canvas->viewport()->setCursor(Qt::sizeAllCursor); - connect(m_canvas, SIGNAL(contentsMoving (int, int)), - this, SLOT(slotCanvasScrolled(int, int))); + connect(m_canvas, TQT_SIGNAL(contentsMoving (int, int)), + this, TQT_SLOT(slotCanvasScrolled(int, int))); setBasicContextHelp(); } void SegmentMover::stow() { - disconnect(m_canvas, SIGNAL(contentsMoving (int, int)), - this, SLOT(slotCanvasScrolled(int, int))); + disconnect(m_canvas, TQT_SIGNAL(contentsMoving (int, int)), + this, TQT_SLOT(slotCanvasScrolled(int, int))); } void SegmentMover::slotCanvasScrolled(int newX, int newY) { - QMouseEvent tmpEvent(QEvent::MouseMove, - m_canvas->viewport()->mapFromGlobal(QCursor::pos()) + QPoint(newX, newY), + TQMouseEvent tmpEvent(TQEvent::MouseMove, + m_canvas->viewport()->mapFromGlobal(TQCursor::pos()) + TQPoint(newX, newY), Qt::NoButton, Qt::NoButton); handleMouseMove(&tmpEvent); } -void SegmentMover::handleMouseButtonPress(QMouseEvent *e) +void SegmentMover::handleMouseButtonPress(TQMouseEvent *e) { CompositionItem item = m_canvas->getFirstItemAt(e->pos()); SegmentSelector* selector = dynamic_cast @@ -141,7 +141,7 @@ void SegmentMover::handleMouseButtonPress(QMouseEvent *e) } -void SegmentMover::handleMouseButtonRelease(QMouseEvent *e) +void SegmentMover::handleMouseButtonRelease(TQMouseEvent *e) { Composition &comp = m_doc->getComposition(); @@ -214,7 +214,7 @@ void SegmentMover::handleMouseButtonRelease(QMouseEvent *e) setBasicContextHelp(); } -int SegmentMover::handleMouseMove(QMouseEvent *e) +int SegmentMover::handleMouseMove(TQMouseEvent *e) { m_canvas->setSnapGrain(true); @@ -239,7 +239,7 @@ int SegmentMover::handleMouseMove(QMouseEvent *e) CompositionModel::itemcontainer::iterator it; int guideX = 0; int guideY = 0; - QRect updateRect; + TQRect updateRect; for (it = changingItems.begin(); it != changingItems.end(); @@ -321,13 +321,13 @@ int SegmentMover::handleMouseMove(QMouseEvent *e) timeT currentItemStartTime = m_canvas->grid().snapX(m_currentItem->rect().x()); RealTime time = comp.getElapsedRealTime(currentItemStartTime); - QString ms; + TQString ms; ms.sprintf("%03d", time.msec()); int bar, beat, fraction, remainder; comp.getMusicalTimeForAbsoluteTime(currentItemStartTime, bar, beat, fraction, remainder); - QString posString = QString("%1.%2s (%3, %4, %5)") + TQString posString = TQString("%1.%2s (%3, %4, %5)") .arg(time.sec).arg(ms) .arg(bar + 1).arg(beat).arg(fraction); @@ -342,7 +342,7 @@ void SegmentMover::setBasicContextHelp() setContextHelp(i18n("Click and drag to move a segment")); } -const QString SegmentMover::ToolName = "segmentmover"; +const TQString SegmentMover::ToolName = "segmentmover"; } #include "SegmentMover.moc" -- cgit v1.2.1