summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/matrix/MatrixSelector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/matrix/MatrixSelector.cpp')
-rw-r--r--src/gui/editors/matrix/MatrixSelector.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/gui/editors/matrix/MatrixSelector.cpp b/src/gui/editors/matrix/MatrixSelector.cpp
index ef553a5..3109aec 100644
--- a/src/gui/editors/matrix/MatrixSelector.cpp
+++ b/src/gui/editors/matrix/MatrixSelector.cpp
@@ -71,7 +71,7 @@ MatrixSelector::MatrixSelector(MatrixView* view)
m_matrixView(view),
m_selectionToMerge(0)
{
- connect(m_parentView, TQT_SIGNAL(usedSelection()),
+ connect(m_tqparentView, TQT_SIGNAL(usedSelection()),
this, TQT_SLOT(slotHideSelection()));
new KAction(i18n("Switch to Draw Tool"), "pencil", 0, this,
@@ -133,7 +133,7 @@ void MatrixSelector::handleLeftButtonPress(timeT time,
//
delete m_selectionToMerge; // you can safely delete 0, you know?
const EventSelection *selectionToMerge = 0;
- if (e->state() & Qt::ShiftButton)
+ if (e->state() & TQt::ShiftButton)
selectionToMerge = m_mParentView->getCurrentSelection();
m_selectionToMerge =
@@ -153,10 +153,10 @@ void MatrixSelector::handleLeftButtonPress(timeT time,
resizeStart = x + width - 10;
if (p.x() > resizeStart) {
- m_dispatchTool = m_parentView->
+ m_dispatchTool = m_tqparentView->
getToolBox()->getTool(MatrixResizer::ToolName);
} else {
- m_dispatchTool = m_parentView->
+ m_dispatchTool = m_tqparentView->
getToolBox()->getTool(MatrixMover::ToolName);
}
@@ -169,7 +169,7 @@ void MatrixSelector::handleLeftButtonPress(timeT time,
element);
return ;
- } else if (e->state() & Qt::ControlButton) {
+ } else if (e->state() & TQt::ControlButton) {
handleMidButtonPress(time, height, staffNo, e, element);
return;
@@ -214,7 +214,7 @@ void MatrixSelector::handleLeftButtonPress(timeT time,
}
}
- //m_parentView->setCursorPosition(p.x());
+ //m_tqparentView->setCursorPosition(p.x());
}
void MatrixSelector::handleMidButtonPress(timeT time,
@@ -229,7 +229,7 @@ void MatrixSelector::handleMidButtonPress(timeT time,
if (dynamic_cast<MatrixElement*>(element))
return ;
- m_dispatchTool = m_parentView->
+ m_dispatchTool = m_tqparentView->
getToolBox()->getTool(MatrixPainter::ToolName);
m_dispatchTool->ready();
@@ -375,7 +375,7 @@ int MatrixSelector::handleMouseMove(timeT time, int height,
int w = int(p.x() - m_selectionRect->x());
int h = int(p.y() - m_selectionRect->y());
- // Qt rectangle dimensions appear to be 1-based
+ // TQt rectangle dimensions appear to be 1-based
if (w > 0)
++w;
else
@@ -443,11 +443,11 @@ void MatrixSelector::ready()
m_selectionRect->hide();
m_selectionRect->setPen(TQPen(GUIPalette::getColour(GUIPalette::SelectionRectangle), 2));
- m_mParentView->setCanvasCursor(Qt::arrowCursor);
+ m_mParentView->setCanvasCursor(TQt::arrowCursor);
//m_mParentView->setPositionTracking(false);
}
- connect(m_parentView->getCanvasView(), TQT_SIGNAL(contentsMoving (int, int)),
+ connect(m_tqparentView->getCanvasView(), TQT_SIGNAL(contentsMoving (int, int)),
this, TQT_SLOT(slotMatrixScrolled(int, int)));
setContextHelp(i18n("Click and drag to select; middle-click and drag to draw new note"));
@@ -461,7 +461,7 @@ void MatrixSelector::stow()
m_mParentView->canvas()->update();
}
- disconnect(m_parentView->getCanvasView(), TQT_SIGNAL(contentsMoving (int, int)),
+ disconnect(m_tqparentView->getCanvasView(), TQT_SIGNAL(contentsMoving (int, int)),
this, TQT_SLOT(slotMatrixScrolled(int, int)));
}
@@ -478,13 +478,13 @@ void MatrixSelector::slotHideSelection()
void MatrixSelector::slotMatrixScrolled(int newX, int newY)
{
if (m_updateRect) {
- int offsetX = newX - m_parentView->getCanvasView()->contentsX();
- int offsetY = newY - m_parentView->getCanvasView()->contentsY();
+ int offsetX = newX - m_tqparentView->getCanvasView()->contentsX();
+ int offsetY = newY - m_tqparentView->getCanvasView()->contentsY();
int w = int(m_selectionRect->width() + offsetX);
int h = int(m_selectionRect->height() + offsetY);
- // Qt rectangle dimensions appear to be 1-based
+ // TQt rectangle dimensions appear to be 1-based
if (w > 0)
++w;
else
@@ -576,7 +576,7 @@ void MatrixSelector::setContextHelpFor(TQPoint p, bool ctrlPressed)
}
if ((mRect = dynamic_cast<QCanvasMatrixRectangle*>(item))) {
- if (! mRect->rect().contains(p, true)) continue;
+ if (! mRect->rect().tqcontains(p, true)) continue;
mel = &(mRect->getMatrixElement());
break;
}