diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kivio/plugins/kiviotargettool/kiviotargettool.cpp | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kivio/plugins/kiviotargettool/kiviotargettool.cpp')
-rw-r--r-- | kivio/plugins/kiviotargettool/kiviotargettool.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kivio/plugins/kiviotargettool/kiviotargettool.cpp b/kivio/plugins/kiviotargettool/kiviotargettool.cpp index 95958d2a..672c0a43 100644 --- a/kivio/plugins/kiviotargettool/kiviotargettool.cpp +++ b/kivio/plugins/kiviotargettool/kiviotargettool.cpp @@ -18,7 +18,7 @@ */ #include "kiviotargettool.h" -#include <qcursor.h> +#include <tqcursor.h> #include <klocale.h> @@ -32,12 +32,12 @@ #include "kivio_command.h" namespace Kivio { - TargetTool::TargetTool(KivioView* parent) : MouseTool(parent, "Add Target Mouse Tool") + TargetTool::TargetTool(KivioView* tqparent) : MouseTool(tqparent, "Add Target Mouse Tool") { m_targetAction = new Kivio::MouseToolAction(i18n("Add Connector Target"), "add_target", 0, actionCollection(), "addTargetTool"); - connect(m_targetAction, SIGNAL(toggled(bool)), this, SLOT(setActivated(bool))); - connect(m_targetAction, SIGNAL(doubleClicked()), this, SLOT(makePermanent())); + connect(m_targetAction, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setActivated(bool))); + connect(m_targetAction, TQT_SIGNAL(doubleClicked()), this, TQT_SLOT(makePermanent())); m_permanent = false; } @@ -46,13 +46,13 @@ namespace Kivio { { } - bool TargetTool::processEvent(QEvent* e) + bool TargetTool::processEvent(TQEvent* e) { - if(e->type() == QEvent::MouseButtonPress) { - mousePress(static_cast<QMouseEvent*>(e)); + if(e->type() == TQEvent::MouseButtonPress) { + mousePress(TQT_TQMOUSEEVENT(e)); return true; - } else if(e->type() == QEvent::MouseMove) { - mouseMove(static_cast<QMouseEvent*>(e)); + } else if(e->type() == TQEvent::MouseMove) { + mouseMove(TQT_TQMOUSEEVENT(e)); return true; } @@ -77,7 +77,7 @@ namespace Kivio { view()->doc()->addCommand(command); } - void TargetTool::mousePress(QMouseEvent* e) + void TargetTool::mousePress(TQMouseEvent* e) { KoPoint p = view()->canvasWidget()->mapFromScreen(e->pos()); int colType; @@ -92,15 +92,15 @@ namespace Kivio { } } - void TargetTool::mouseMove(QMouseEvent* e) + void TargetTool::mouseMove(TQMouseEvent* e) { KoPoint p = view()->canvasWidget()->mapFromScreen(e->pos()); int colType; if(view()->canvasWidget()->activePage()->checkForStencil(&p, &colType, 0, false)) { - view()->canvasWidget()->setCursor(Qt::CrossCursor); + view()->canvasWidget()->setCursor(TQt::CrossCursor); } else { - view()->canvasWidget()->setCursor(Qt::ForbiddenCursor); + view()->canvasWidget()->setCursor(TQt::ForbiddenCursor); } } |