diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/general/EditTool.cpp | |
parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
download | rosegarden-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/general/EditTool.cpp')
-rw-r--r-- | src/gui/general/EditTool.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
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 <kxmlguiclient.h> -#include <qevent.h> -#include <qpopupmenu.h> -#include <qstring.h> +#include <tqevent.h> +#include <tqpopupmenu.h> +#include <tqstring.h> 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<QPopupMenu*>(tmp); + m_menu = dynamic_cast<TQPopupMenu*>(tmp); } bool EditTool::hasMenu() |