diff options
author | Michele Calgaro <[email protected]> | 2023-11-04 23:32:44 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-04 23:32:44 +0900 |
commit | 1ec7b1dadc8d1668fb89cf06b32dfc52c18db4d6 (patch) | |
tree | 7cd9102a8ca3bcb3ffaa566d7302ad15e580d757 /src/gui/widgets/Rotary.cpp | |
parent | 3d3dc041a570cd26154510785f50ffcd8cf56005 (diff) | |
download | rosegarden-1ec7b1dadc8d1668fb89cf06b32dfc52c18db4d6.tar.gz rosegarden-1ec7b1dadc8d1668fb89cf06b32dfc52c18db4d6.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/gui/widgets/Rotary.cpp')
-rw-r--r-- | src/gui/widgets/Rotary.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/widgets/Rotary.cpp b/src/gui/widgets/Rotary.cpp index a9c24e8..4b5134f 100644 --- a/src/gui/widgets/Rotary.cpp +++ b/src/gui/widgets/Rotary.cpp @@ -371,17 +371,17 @@ Rotary::snapPosition() void Rotary::mousePressEvent(TQMouseEvent *e) { - if (e->button() == Qt::LeftButton) { + if (e->button() == TQt::LeftButton) { m_buttonPressed = true; m_lastY = e->y(); m_lastX = e->x(); - } else if (e->button() == Qt::MidButton) // reset to default + } else if (e->button() == TQt::MidButton) // reset to default { m_position = m_initialPosition; snapPosition(); update(); emit valueChanged(m_snapPosition); - } else if (e->button() == Qt::RightButton) // reset to centre position + } else if (e->button() == TQt::RightButton) // reset to centre position { m_position = (m_maxValue + m_minValue) / 2.0; snapPosition(); @@ -405,7 +405,7 @@ Rotary::mousePressEvent(TQMouseEvent *e) // std::cerr << "Rotary::mousePressEvent: logarithmic = " << m_logarithmic // << ", position = " << m_position << std::endl; - if (e->button() == Qt::RightButton || e->button() == Qt::MidButton) { + if (e->button() == TQt::RightButton || e->button() == TQt::MidButton) { // one shot, 500ms _floatTimer->start(500, true); } @@ -453,7 +453,7 @@ Rotary::mouseDoubleClickEvent(TQMouseEvent * /*e*/) void Rotary::mouseReleaseEvent(TQMouseEvent *e) { - if (e->button() == Qt::LeftButton) { + if (e->button() == TQt::LeftButton) { m_buttonPressed = false; m_lastY = 0; m_lastX = 0; |