summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/matrix/MatrixResizer.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/editors/matrix/MatrixResizer.cpp
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz
rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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"