diff options
author | Michele Calgaro <[email protected]> | 2023-11-04 23:32:44 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-05 20:51:25 +0900 |
commit | 5a84066555984b1b0c6e00e950d8f6d106fe877b (patch) | |
tree | 7cd9102a8ca3bcb3ffaa566d7302ad15e580d757 /src/gui/editors | |
parent | 7d34c9951c402a4c22da5597ed2e72f3caf66938 (diff) | |
download | rosegarden-5a84066555984b1b0c6e00e950d8f6d106fe877b.tar.gz rosegarden-5a84066555984b1b0c6e00e950d8f6d106fe877b.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 1ec7b1dadc8d1668fb89cf06b32dfc52c18db4d6)
Diffstat (limited to 'src/gui/editors')
18 files changed, 37 insertions, 37 deletions
diff --git a/src/gui/editors/eventlist/EventView.cpp b/src/gui/editors/eventlist/EventView.cpp index 699d19b..8f527d6 100644 --- a/src/gui/editors/eventlist/EventView.cpp +++ b/src/gui/editors/eventlist/EventView.cpp @@ -124,7 +124,7 @@ EventView::EventView(RosegardenGUIDoc *doc, // define some note filtering buttons in a group // m_filterGroup = - new TQButtonGroup(1, Qt::Horizontal, i18n("Event filters"), getCentralWidget()); + new TQButtonGroup(1, TQt::Horizontal, i18n("Event filters"), getCentralWidget()); m_noteCheckBox = new TQCheckBox(i18n("Note"), m_filterGroup); m_programCheckBox = new TQCheckBox(i18n("Program Change"), m_filterGroup); @@ -156,7 +156,7 @@ EventView::EventView(RosegardenGUIDoc *doc, segments[0]->getComposition()->getTriggerSegmentRec(id); TQGroupBox *groupBox = new TQGroupBox - (1, Qt::Horizontal, i18n("Triggered Segment Properties"), getCentralWidget()); + (1, TQt::Horizontal, i18n("Triggered Segment Properties"), getCentralWidget()); TQFrame *frame = new TQFrame(groupBox); TQGridLayout *layout = new TQGridLayout(frame, 5, 3, 5, 5); diff --git a/src/gui/editors/guitar/FingeringBox.cpp b/src/gui/editors/guitar/FingeringBox.cpp index a8db91e..ccba5ff 100644 --- a/src/gui/editors/guitar/FingeringBox.cpp +++ b/src/gui/editors/guitar/FingeringBox.cpp @@ -181,7 +181,7 @@ FingeringBox::mousePressEvent(TQMouseEvent *event) if (!m_editable) return; - if((event->button() == Qt::LeftButton) && m_editable) { + if((event->button() == TQt::LeftButton) && m_editable) { // Find string position m_press_string_num = getStringNumber(event->pos()); diff --git a/src/gui/editors/matrix/MatrixView.cpp b/src/gui/editors/matrix/MatrixView.cpp index f91d69b..091d995 100644 --- a/src/gui/editors/matrix/MatrixView.cpp +++ b/src/gui/editors/matrix/MatrixView.cpp @@ -1396,7 +1396,7 @@ void MatrixView::slotMousePressed(timeT time, int pitch, m_tool->handleMousePress(time, pitch, 0, e, el); - if (e->button() != Qt::RightButton) { + if (e->button() != TQt::RightButton) { getCanvasView()->startAutoScroll(); } @@ -2215,7 +2215,7 @@ MatrixView::initZoomToolbar() } m_hZoomSlider = new ZoomSlider<double> - (zoomSizes, -1, Qt::Horizontal, zoomToolbar, "tde toolbar widget"); + (zoomSizes, -1, TQt::Horizontal, zoomToolbar, "tde toolbar widget"); m_hZoomSlider->setTracking(true); m_hZoomSlider->setFocusPolicy(TQWidget::NoFocus); diff --git a/src/gui/editors/matrix/PianoKeyboard.cpp b/src/gui/editors/matrix/PianoKeyboard.cpp index b099f48..7123695 100644 --- a/src/gui/editors/matrix/PianoKeyboard.cpp +++ b/src/gui/editors/matrix/PianoKeyboard.cpp @@ -256,7 +256,7 @@ void PianoKeyboard::mouseMoveEvent(TQMouseEvent* e) } } - if (e->state() & Qt::LeftButton) { + if (e->state() & TQt::LeftButton) { if (m_selecting) emit keySelected(e->y(), true); else @@ -272,7 +272,7 @@ void PianoKeyboard::mousePressEvent(TQMouseEvent *e) { TQt::ButtonState bs = e->state(); - if (e->button() == Qt::LeftButton) { + if (e->button() == TQt::LeftButton) { m_mouseDown = true; m_selecting = (bs & TQt::ShiftButton); m_lastKeyPressed = e->y(); @@ -286,7 +286,7 @@ void PianoKeyboard::mousePressEvent(TQMouseEvent *e) void PianoKeyboard::mouseReleaseEvent(TQMouseEvent *e) { - if (e->button() == Qt::LeftButton) { + if (e->button() == TQt::LeftButton) { m_mouseDown = false; m_selecting = false; emit keyReleased(e->y(), false); diff --git a/src/gui/editors/matrix/QCanvasMatrixDiamond.cpp b/src/gui/editors/matrix/QCanvasMatrixDiamond.cpp index d20d3b4..b434cf0 100644 --- a/src/gui/editors/matrix/QCanvasMatrixDiamond.cpp +++ b/src/gui/editors/matrix/QCanvasMatrixDiamond.cpp @@ -50,7 +50,7 @@ TQPointArray QCanvasMatrixDiamond::areaPoints() const int pw = (pen().width() + 1) / 2; if ( pw < 1 ) pw = 1; - if ( pen() == Qt::NoPen ) + if ( pen() == TQt::NoPen ) pw = 0; pa[0] = TQPoint((int)x() - height() / 2 - pw, (int)y() - pw); pa[1] = pa[0] + TQPoint(height() + pw * 2, 0); diff --git a/src/gui/editors/notation/NoteFont.cpp b/src/gui/editors/notation/NoteFont.cpp index af8dd46..60157ca 100644 --- a/src/gui/editors/notation/NoteFont.cpp +++ b/src/gui/editors/notation/NoteFont.cpp @@ -202,7 +202,7 @@ NoteFont::lookupDrawRep(TQPixmap *pixmap) const return 0; if (image.depth() > 1) { - image = image.convertDepth(1, Qt::MonoOnly | Qt::ThresholdDither); + image = image.convertDepth(1, TQt::MonoOnly | TQt::ThresholdDither); } NoteCharacterDrawRep *a = new NoteCharacterDrawRep(); diff --git a/src/gui/editors/notation/NotePixmapFactory.cpp b/src/gui/editors/notation/NotePixmapFactory.cpp index 22c22f7..9268121 100644 --- a/src/gui/editors/notation/NotePixmapFactory.cpp +++ b/src/gui/editors/notation/NotePixmapFactory.cpp @@ -2921,7 +2921,7 @@ NotePixmapFactory::drawOttavaAux(int length, int octavesUp, m_p->drawLine(x0, y0, x1, y0); - pen.setStyle(Qt::SolidLine); + pen.setStyle(TQt::SolidLine); m_p->painter().setPen(pen); // if (!m_inPrinterMethod) m_p->maskPainter().setPen(pen); diff --git a/src/gui/editors/notation/NotePixmapPainter.h b/src/gui/editors/notation/NotePixmapPainter.h index 62118af..4e5ca12 100644 --- a/src/gui/editors/notation/NotePixmapPainter.h +++ b/src/gui/editors/notation/NotePixmapPainter.h @@ -42,8 +42,8 @@ public: m_externalPainter = painter; m_useMask = false; - painter->setPen(TQPen(Qt::black, 1, Qt::SolidLine, - Qt::RoundCap, Qt::RoundJoin)); + painter->setPen(TQPen(TQt::black, 1, TQt::SolidLine, + TQt::RoundCap, TQt::RoundJoin)); if (m_externalPainter) { m_painter = m_externalPainter; 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); diff --git a/src/gui/editors/tempo/TempoView.cpp b/src/gui/editors/tempo/TempoView.cpp index 9643228..001b610 100644 --- a/src/gui/editors/tempo/TempoView.cpp +++ b/src/gui/editors/tempo/TempoView.cpp @@ -84,7 +84,7 @@ TempoView::TempoView(RosegardenGUIDoc *doc, TQWidget *parent, timeT openTime): // define some note filtering buttons in a group // m_filterGroup = - new TQButtonGroup(1, Qt::Horizontal, i18n("Filter"), getCentralWidget()); + new TQButtonGroup(1, TQt::Horizontal, i18n("Filter"), getCentralWidget()); m_tempoCheckBox = new TQCheckBox(i18n("Tempo"), m_filterGroup); m_timeSigCheckBox = new TQCheckBox(i18n("Time Signature"), m_filterGroup); |