diff options
Diffstat (limited to 'src/gui/editors/segment')
9 files changed, 23 insertions, 23 deletions
diff --git a/src/gui/editors/segment/ControlParameterEditDialog.cpp b/src/gui/editors/segment/ControlParameterEditDialog.cpp index 731c37e..3c3c76b 100644 --- a/src/gui/editors/segment/ControlParameterEditDialog.cpp +++ b/src/gui/editors/segment/ControlParameterEditDialog.cpp @@ -66,7 +66,7 @@ ControlParameterEditDialog::ControlParameterEditDialog( TQVBox *vbox = makeVBoxMainWidget(); TQGroupBox *groupBox = new TQGroupBox - (1, Qt::Horizontal, i18n("Control Event Properties"), vbox); + (1, TQt::Horizontal, i18n("Control Event Properties"), vbox); TQFrame *frame = new TQFrame(groupBox); diff --git a/src/gui/editors/segment/MarkerEditor.cpp b/src/gui/editors/segment/MarkerEditor.cpp index b3e6057..a0b6f3c 100644 --- a/src/gui/editors/segment/MarkerEditor.cpp +++ b/src/gui/editors/segment/MarkerEditor.cpp @@ -89,7 +89,7 @@ MarkerEditor::MarkerEditor(TQWidget *parent, for (int i = 0; i < 3; ++i) m_listView->setColumnAlignment(i, TQt::AlignHCenter); - TQGroupBox *posGroup = new TQGroupBox(2, Qt::Horizontal, + TQGroupBox *posGroup = new TQGroupBox(2, TQt::Horizontal, i18n("Pointer position"), mainFrame); new TQLabel(i18n("Absolute time:"), posGroup); diff --git a/src/gui/editors/segment/TrackHeader.cpp b/src/gui/editors/segment/TrackHeader.cpp index 4e0e498..1e17f8f 100644 --- a/src/gui/editors/segment/TrackHeader.cpp +++ b/src/gui/editors/segment/TrackHeader.cpp @@ -40,7 +40,7 @@ TrackHeader::paintEvent(TQPaintEvent *e) { TQPainter p( this ); p.setPen( colorGroup().buttonText() ); - int pos = (orientation() == Qt::Horizontal) + int pos = (orientation() == TQt::Horizontal) ? e->rect().left() : e->rect().top(); int id = mapToIndex( sectionAt( pos + offset() ) ); @@ -52,8 +52,8 @@ TrackHeader::paintEvent(TQPaintEvent *e) for ( int i = id; i < count(); i++ ) { TQRect r = sRect( i ); paintSection( &p, i, r ); - if ( orientation() == Qt::Horizontal && r. right() >= e->rect().right() || - orientation() == Qt::Vertical && r. bottom() >= e->rect().bottom() ) + if ( orientation() == TQt::Horizontal && r. right() >= e->rect().right() || + orientation() == TQt::Vertical && r. bottom() >= e->rect().bottom() ) return ; } diff --git a/src/gui/editors/segment/TrackLabel.cpp b/src/gui/editors/segment/TrackLabel.cpp index 8ccf44e..108fb7e 100644 --- a/src/gui/editors/segment/TrackLabel.cpp +++ b/src/gui/editors/segment/TrackLabel.cpp @@ -142,12 +142,12 @@ TrackLabel::setSelected(bool on) void TrackLabel::mousePressEvent(TQMouseEvent *e) { - if (e->button() == Qt::RightButton) { + if (e->button() == TQt::RightButton) { emit clicked(); emit changeToInstrumentList(); - } else if (e->button() == Qt::LeftButton) { + } else if (e->button() == TQt::LeftButton) { // start a timer on this hold m_pressTimer->start(200, true); // 200ms, single shot @@ -161,7 +161,7 @@ TrackLabel::mouseReleaseEvent(TQMouseEvent *e) if (m_pressTimer->isActive()) m_pressTimer->stop(); - if (e->button() == Qt::LeftButton) { + if (e->button() == TQt::LeftButton) { emit clicked(); } } @@ -169,7 +169,7 @@ TrackLabel::mouseReleaseEvent(TQMouseEvent *e) void TrackLabel::mouseDoubleClickEvent(TQMouseEvent *e) { - if (e->button() != Qt::LeftButton) + if (e->button() != TQt::LeftButton) return ; // Highlight this label alone and cheat using diff --git a/src/gui/editors/segment/segmentcanvas/CompositionView.cpp b/src/gui/editors/segment/segmentcanvas/CompositionView.cpp index be654e7..3d09344 100644 --- a/src/gui/editors/segment/segmentcanvas/CompositionView.cpp +++ b/src/gui/editors/segment/segmentcanvas/CompositionView.cpp @@ -878,7 +878,7 @@ void CompositionView::drawAreaAudioPreviews(TQPainter * p, const TQRect& clipRec // << " - preResizeOrigin : " << api->preResizeOrigin << endl; p->drawImage(drawBasePoint, api->pixmap[idx], localRect, - Qt::ColorOnly | Qt::ThresholdDither | Qt::AvoidDither); + TQt::ColorOnly | TQt::ThresholdDither | TQt::AvoidDither); ++idx; if (idx >= api->pixmap.size()) @@ -1361,8 +1361,8 @@ void CompositionView::contentsMousePressEvent(TQMouseEvent* e) slotSetPencilOverExisting((bs & TQt::AltButton + TQt::ControlButton) != 0); switch (e->button()) { - case Qt::LeftButton: - case Qt::MidButton: + case TQt::LeftButton: + case TQt::MidButton: startAutoScroll(); if (m_tool) @@ -1371,7 +1371,7 @@ void CompositionView::contentsMousePressEvent(TQMouseEvent* e) RG_DEBUG << "CompositionView::contentsMousePressEvent() :" << this << " no tool\n"; break; - case Qt::RightButton: + case TQt::RightButton: if (m_tool) m_tool->handleRightButtonPress(e); else @@ -1392,8 +1392,8 @@ void CompositionView::contentsMouseReleaseEvent(TQMouseEvent* e) if (!m_tool) return ; - if (e->button() == Qt::LeftButton || - e->button() == Qt::MidButton ) + if (e->button() == TQt::LeftButton || + e->button() == TQt::MidButton ) m_tool->handleMouseButtonRelease(e); } diff --git a/src/gui/editors/segment/segmentcanvas/SegmentMover.cpp b/src/gui/editors/segment/segmentcanvas/SegmentMover.cpp index 3843ba6..ae2c2aa 100644 --- a/src/gui/editors/segment/segmentcanvas/SegmentMover.cpp +++ b/src/gui/editors/segment/segmentcanvas/SegmentMover.cpp @@ -76,7 +76,7 @@ void SegmentMover::slotCanvasScrolled(int newX, int newY) { TQMouseEvent tmpEvent(TQEvent::MouseMove, m_canvas->viewport()->mapFromGlobal(TQCursor::pos()) + TQPoint(newX, newY), - Qt::NoButton, Qt::NoButton); + TQt::NoButton, TQt::NoButton); handleMouseMove(&tmpEvent); } diff --git a/src/gui/editors/segment/segmentcanvas/SegmentPencil.cpp b/src/gui/editors/segment/segmentcanvas/SegmentPencil.cpp index 67ad3d3..38bdf31 100644 --- a/src/gui/editors/segment/segmentcanvas/SegmentPencil.cpp +++ b/src/gui/editors/segment/segmentcanvas/SegmentPencil.cpp @@ -78,13 +78,13 @@ void SegmentPencil::slotCanvasScrolled(int newX, int newY) { TQMouseEvent tmpEvent(TQEvent::MouseMove, m_canvas->viewport()->mapFromGlobal(TQCursor::pos()) + TQPoint(newX, newY), - Qt::NoButton, Qt::NoButton); + TQt::NoButton, TQt::NoButton); handleMouseMove(&tmpEvent); } void SegmentPencil::handleMouseButtonPress(TQMouseEvent *e) { - if (e->button() == Qt::RightButton) + if (e->button() == TQt::RightButton) return; // is user holding Ctrl+Alt? (ugly, but we are running short on available @@ -151,7 +151,7 @@ void SegmentPencil::handleMouseButtonPress(TQMouseEvent *e) void SegmentPencil::handleMouseButtonRelease(TQMouseEvent* e) { - if (e->button() == Qt::RightButton) + if (e->button() == TQt::RightButton) return ; setContextHelpFor(e->pos()); diff --git a/src/gui/editors/segment/segmentcanvas/SegmentResizer.cpp b/src/gui/editors/segment/segmentcanvas/SegmentResizer.cpp index 671e04c..505ce3e 100644 --- a/src/gui/editors/segment/segmentcanvas/SegmentResizer.cpp +++ b/src/gui/editors/segment/segmentcanvas/SegmentResizer.cpp @@ -83,7 +83,7 @@ void SegmentResizer::slotCanvasScrolled(int newX, int newY) { TQMouseEvent tmpEvent(TQEvent::MouseMove, m_canvas->viewport()->mapFromGlobal(TQCursor::pos()) + TQPoint(newX, newY), - Qt::NoButton, Qt::NoButton); + TQt::NoButton, TQt::NoButton); handleMouseMove(&tmpEvent); } diff --git a/src/gui/editors/segment/segmentcanvas/SegmentSelector.cpp b/src/gui/editors/segment/segmentcanvas/SegmentSelector.cpp index 54d973c..cb20975 100644 --- a/src/gui/editors/segment/segmentcanvas/SegmentSelector.cpp +++ b/src/gui/editors/segment/segmentcanvas/SegmentSelector.cpp @@ -86,7 +86,7 @@ void SegmentSelector::slotCanvasScrolled(int newX, int newY) { TQMouseEvent tmpEvent(TQEvent::MouseMove, m_canvas->viewport()->mapFromGlobal(TQCursor::pos()) + TQPoint(newX, newY), - Qt::NoButton, Qt::NoButton); + TQt::NoButton, TQt::NoButton); handleMouseMove(&tmpEvent); } @@ -172,8 +172,8 @@ SegmentSelector::handleMouseButtonPress(TQMouseEvent *e) // Add on middle button or ctrl+left - bounding box on rest // - if (e->button() == Qt::MidButton || - (e->button() == Qt::LeftButton && (e->state() & ControlButton))) { + if (e->button() == TQt::MidButton || + (e->button() == TQt::LeftButton && (e->state() & ControlButton))) { m_dispatchTool = getToolBox()->getTool(SegmentPencil::ToolName); |