diff options
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() |