summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/matrix/MatrixCanvasView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/matrix/MatrixCanvasView.cpp')
-rw-r--r--src/gui/editors/matrix/MatrixCanvasView.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/editors/matrix/MatrixCanvasView.cpp b/src/gui/editors/matrix/MatrixCanvasView.cpp
index f97ceaf..5782164 100644
--- a/src/gui/editors/matrix/MatrixCanvasView.cpp
+++ b/src/gui/editors/matrix/MatrixCanvasView.cpp
@@ -45,9 +45,9 @@ namespace Rosegarden
MatrixCanvasView::MatrixCanvasView(MatrixStaff& staff,
SnapGrid *snapGrid,
bool drumMode,
- TQCanvas *viewing, TQWidget *parent,
+ TQCanvas *viewing, TQWidget *tqparent,
const char *name, WFlags f)
- : RosegardenCanvasView(viewing, parent, name, f),
+ : RosegardenCanvasView(viewing, tqparent, name, f),
m_staff(staff),
m_snapGrid(snapGrid),
m_drumMode(drumMode),
@@ -55,7 +55,7 @@ MatrixCanvasView::MatrixCanvasView(MatrixStaff& staff,
m_previousEvPitch(0),
m_mouseWasPressed(false),
m_ignoreClick(false),
- m_smoothModifier(Qt::ShiftButton),
+ m_smoothModifier(TQt::ShiftButton),
m_lastSnap(SnapGrid::SnapToBeat),
m_isSnapTemporary(false)
{
@@ -130,7 +130,7 @@ void MatrixCanvasView::contentsMousePressEvent(TQMouseEvent* e)
// TQCanvas::collisions() can be a bit optimistic and report
// items which are close to the point but not actually under it.
// So a little sanity check helps.
- if (!rect.contains(p, true)) continue;
+ if (!rect.tqcontains(p, true)) continue;
mel = &(mRect->getMatrixElement());
// std::cerr << "MatrixCanvasView::contentsMousePressEvent: collision with an existing matrix element" << std::endl;
@@ -198,7 +198,7 @@ void MatrixCanvasView::contentsMouseMoveEvent(TQMouseEvent* e)
QCanvasMatrixRectangle *mRect = 0;
if ((mRect = dynamic_cast<QCanvasMatrixRectangle*>(item))) {
- if (!mRect->rect().contains(p, true))
+ if (!mRect->rect().tqcontains(p, true))
continue;
mel = &(mRect->getMatrixElement());
MATRIX_DEBUG << "have element" << endl;
@@ -268,7 +268,7 @@ void MatrixCanvasView::slotExternalWheelEvent(TQWheelEvent* e)
void MatrixCanvasView::updateGridSnap(TQMouseEvent *e)
{
- Qt::ButtonState bs = e->state();
+ TQt::ButtonState bs = e->state();
// MATRIX_DEBUG << "MatrixCanvasView::updateGridSnap : bs = "
// << bs << " - sm = " << getSmoothModifier() << ", is temporary " << m_isSnapTemporary << ", saved is " << m_lastSnap << endl;