summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/matrix
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-04 23:32:44 +0900
committerMichele Calgaro <[email protected]>2023-11-04 23:32:44 +0900
commit1ec7b1dadc8d1668fb89cf06b32dfc52c18db4d6 (patch)
tree7cd9102a8ca3bcb3ffaa566d7302ad15e580d757 /src/gui/editors/matrix
parent3d3dc041a570cd26154510785f50ffcd8cf56005 (diff)
downloadrosegarden-1ec7b1dadc8d1668fb89cf06b32dfc52c18db4d6.tar.gz
rosegarden-1ec7b1dadc8d1668fb89cf06b32dfc52c18db4d6.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/gui/editors/matrix')
-rw-r--r--src/gui/editors/matrix/MatrixView.cpp4
-rw-r--r--src/gui/editors/matrix/PianoKeyboard.cpp6
-rw-r--r--src/gui/editors/matrix/QCanvasMatrixDiamond.cpp2
3 files changed, 6 insertions, 6 deletions
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);