From 11f31c37e5fa4889d9989f10272f44845449cb7b Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 6 Sep 2010 20:59:29 +0000 Subject: Initial TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/gui/general/EditTool.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/gui/general/EditTool.cpp') diff --git a/src/gui/general/EditTool.cpp b/src/gui/general/EditTool.cpp index 52e7b11..f48017c 100644 --- a/src/gui/general/EditTool.cpp +++ b/src/gui/general/EditTool.cpp @@ -32,15 +32,15 @@ #include "EditView.h" #include "RosegardenCanvasView.h" #include -#include -#include -#include +#include +#include +#include namespace Rosegarden { -EditTool::EditTool(const QString& menuName, EditView* view) +EditTool::EditTool(const TQString& menuName, EditView* view) : BaseTool(menuName, view->factory(), view), m_parentView(view) {} @@ -48,7 +48,7 @@ EditTool::EditTool(const QString& menuName, EditView* view) void EditTool::handleMousePress(timeT time, int height, int staffNo, - QMouseEvent* e, + TQMouseEvent* e, ViewElement* el) { RG_DEBUG << "EditTool::handleMousePress : mouse button = " @@ -57,7 +57,7 @@ void EditTool::handleMousePress(timeT time, switch (e->button()) { case Qt::LeftButton: - if (e->type() == QEvent::MouseButtonDblClick) { + if (e->type() == TQEvent::MouseButtonDblClick) { RG_DEBUG << "EditTool::handleMousePress: it's a double-click" << endl; handleMouseDoubleClick(time, height, staffNo, e, el); @@ -84,13 +84,13 @@ void EditTool::handleMousePress(timeT time, void EditTool::handleMidButtonPress(timeT, int, int, - QMouseEvent*, + TQMouseEvent*, ViewElement*) {} void EditTool::handleRightButtonPress(timeT, int, int, - QMouseEvent*, + TQMouseEvent*, ViewElement*) { showMenu(); @@ -98,21 +98,21 @@ void EditTool::handleRightButtonPress(timeT, void EditTool::handleMouseDoubleClick(timeT, int, int, - QMouseEvent*, + TQMouseEvent*, ViewElement*) { // nothing } -int EditTool::handleMouseMove(timeT, int, QMouseEvent*) +int EditTool::handleMouseMove(timeT, int, TQMouseEvent*) { return RosegardenCanvasView::NoFollow; } -void EditTool::handleMouseRelease(timeT, int, QMouseEvent*) +void EditTool::handleMouseRelease(timeT, int, TQMouseEvent*) {} -void EditTool::createMenu(QString rcFileName) +void EditTool::createMenu(TQString rcFileName) { setRCFileName(rcFileName); createMenu(); @@ -125,14 +125,14 @@ void EditTool::createMenu() setXMLFile(m_rcFileName); m_parentFactory->addClient(this); - QWidget* tmp = m_parentFactory->container(m_menuName, this); + TQWidget* tmp = m_parentFactory->container(m_menuName, this); if (!tmp) RG_DEBUG << "BaseTool::createMenu(" << m_rcFileName << ") : menu creation failed (name : " << m_menuName << ")\n"; - m_menu = dynamic_cast(tmp); + m_menu = dynamic_cast(tmp); } bool EditTool::hasMenu() -- cgit v1.2.1