summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/matrix/MatrixResizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/matrix/MatrixResizer.cpp')
-rw-r--r--src/gui/editors/matrix/MatrixResizer.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/gui/editors/matrix/MatrixResizer.cpp b/src/gui/editors/matrix/MatrixResizer.cpp
index 2fab5e8..fce4306 100644
--- a/src/gui/editors/matrix/MatrixResizer.cpp
+++ b/src/gui/editors/matrix/MatrixResizer.cpp
@@ -42,9 +42,9 @@
#include "MatrixView.h"
#include <kaction.h>
#include <kglobal.h>
-#include <qiconset.h>
-#include <qpoint.h>
-#include <qstring.h>
+#include <tqiconset.h>
+#include <tqpoint.h>
+#include <tqstring.h>
#include "misc/Debug.h"
@@ -56,24 +56,24 @@ MatrixResizer::MatrixResizer(MatrixView* parent)
m_currentElement(0),
m_currentStaff(0)
{
- QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
- QCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm");
- QIconSet icon = QIconSet(pixmap);
+ TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
+ TQCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm");
+ TQIconSet icon = TQIconSet(pixmap);
new KAction(i18n("Switch to Select Tool"), icon, 0, this,
- SLOT(slotSelectSelected()), actionCollection(),
+ TQT_SLOT(slotSelectSelected()), actionCollection(),
"select");
new KAction(i18n("Switch to Draw Tool"), "pencil", 0, this,
- SLOT(slotDrawSelected()), actionCollection(),
+ TQT_SLOT(slotDrawSelected()), actionCollection(),
"draw");
new KAction(i18n("Switch to Erase Tool"), "eraser", 0, this,
- SLOT(slotEraseSelected()), actionCollection(),
+ TQT_SLOT(slotEraseSelected()), actionCollection(),
"erase");
new KAction(i18n("Switch to Move Tool"), "move", 0, this,
- SLOT(slotMoveSelected()), actionCollection(),
+ TQT_SLOT(slotMoveSelected()), actionCollection(),
"move");
createMenu("matrixresizer.rc");
@@ -89,7 +89,7 @@ void MatrixResizer::handleEventRemoved(Event *event)
void MatrixResizer::handleLeftButtonPress(timeT,
int,
int staffNo,
- QMouseEvent* e,
+ TQMouseEvent* e,
ViewElement* el)
{
MATRIX_DEBUG << "MatrixResizer::handleLeftButtonPress() : el = "
@@ -130,7 +130,7 @@ void MatrixResizer::handleLeftButtonPress(timeT,
int MatrixResizer::handleMouseMove(timeT newTime,
int,
- QMouseEvent *e)
+ TQMouseEvent *e)
{
setBasicContextHelp();
@@ -148,7 +148,7 @@ int MatrixResizer::handleMouseMove(timeT newTime,
// the closest direction instead
if (e) {
- QPoint p = m_mParentView->inverseMapPoint(e->pos());
+ TQPoint p = m_mParentView->inverseMapPoint(e->pos());
newTime = getSnapGrid().snapX(p.x(), SnapGrid::SnapEither);
}
@@ -192,7 +192,7 @@ int MatrixResizer::handleMouseMove(timeT newTime,
void MatrixResizer::handleMouseRelease(timeT newTime,
int,
- QMouseEvent *e)
+ TQMouseEvent *e)
{
if (!m_currentElement || !m_currentStaff)
return ;
@@ -202,7 +202,7 @@ void MatrixResizer::handleMouseRelease(timeT newTime,
// closest direction instead
if (e) {
- QPoint p = m_mParentView->inverseMapPoint(e->pos());
+ TQPoint p = m_mParentView->inverseMapPoint(e->pos());
newTime = getSnapGrid().snapX(p.x(), SnapGrid::SnapEither);
}
@@ -215,7 +215,7 @@ void MatrixResizer::handleMouseRelease(timeT newTime,
if (selection->getAddedEvents() == 0)
return ;
else {
- QString commandLabel = i18n("Resize Event");
+ TQString commandLabel = i18n("Resize Event");
if (selection->getAddedEvents() > 1)
commandLabel = i18n("Resize Events");
@@ -289,24 +289,24 @@ void MatrixResizer::handleMouseRelease(timeT newTime,
void MatrixResizer::ready()
{
- connect(m_parentView->getCanvasView(), SIGNAL(contentsMoving (int, int)),
- this, SLOT(slotMatrixScrolled(int, int)));
+ connect(m_parentView->getCanvasView(), TQT_SIGNAL(contentsMoving (int, int)),
+ this, TQT_SLOT(slotMatrixScrolled(int, int)));
m_mParentView->setCanvasCursor(Qt::sizeHorCursor);
setBasicContextHelp();
}
void MatrixResizer::stow()
{
- disconnect(m_parentView->getCanvasView(), SIGNAL(contentsMoving (int, int)),
- this, SLOT(slotMatrixScrolled(int, int)));
+ disconnect(m_parentView->getCanvasView(), TQT_SIGNAL(contentsMoving (int, int)),
+ this, TQT_SLOT(slotMatrixScrolled(int, int)));
}
void MatrixResizer::slotMatrixScrolled(int newX, int newY)
{
- QPoint newP1(newX, newY), oldP1(m_parentView->getCanvasView()->contentsX(),
+ TQPoint newP1(newX, newY), oldP1(m_parentView->getCanvasView()->contentsX(),
m_parentView->getCanvasView()->contentsY());
- QPoint p(newX, newY);
+ TQPoint p(newX, newY);
if (newP1.x() > oldP1.x()) {
p.setX(newX + m_parentView->getCanvasView()->visibleWidth());
@@ -327,7 +327,7 @@ void MatrixResizer::setBasicContextHelp()
}
}
-const QString MatrixResizer::ToolName = "resizer";
+const TQString MatrixResizer::ToolName = "resizer";
}
#include "MatrixResizer.moc"