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/kiviosmlconnector/tool_connector.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/kiviosmlconnector/tool_connector.cpp')
-rw-r--r-- | kivio/plugins/kiviosmlconnector/tool_connector.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kivio/plugins/kiviosmlconnector/tool_connector.cpp b/kivio/plugins/kiviosmlconnector/tool_connector.cpp index ded38f13..4578f0a7 100644 --- a/kivio/plugins/kiviosmlconnector/tool_connector.cpp +++ b/kivio/plugins/kiviosmlconnector/tool_connector.cpp @@ -18,7 +18,7 @@ */ #include "tool_connector.h" -#include <qcursor.h> +#include <tqcursor.h> #include <kdebug.h> #include <kiconloader.h> #include <kstandarddirs.h> @@ -46,12 +46,12 @@ SMLConnector::SMLConnector( KivioView* view ) { m_connectorAction = new KToggleAction(i18n("Polyline Connector"), "", 0, actionCollection(), "sml_connector"); - connect(m_connectorAction, SIGNAL(toggled(bool)), this, SLOT(setActivated(bool))); + connect(m_connectorAction, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setActivated(bool))); m_mode = stmNone; - m_pConnectorCursor1 = new QCursor(BarIcon("kivio_connector_cursor1",KivioFactory::global()),2,2); - m_pConnectorCursor2 = new QCursor(BarIcon("kivio_connector_cursor2",KivioFactory::global()),2,2); + m_pConnectorCursor1 = new TQCursor(BarIcon("kivio_connector_cursor1",KivioFactory::global()),2,2); + m_pConnectorCursor2 = new TQCursor(BarIcon("kivio_connector_cursor2",KivioFactory::global()),2,2); } SMLConnector::~SMLConnector() @@ -67,22 +67,22 @@ SMLConnector::~SMLConnector() * @param e The event to be identified and processed * */ -bool SMLConnector::processEvent( QEvent* e ) +bool SMLConnector::processEvent( TQEvent* e ) { switch (e->type()) { - case QEvent::MouseButtonPress: - mousePress( (QMouseEvent*)e ); + case TQEvent::MouseButtonPress: + mousePress( (TQMouseEvent*)e ); return true; break; - case QEvent::MouseButtonRelease: - mouseRelease( (QMouseEvent*)e ); + case TQEvent::MouseButtonRelease: + mouseRelease( (TQMouseEvent*)e ); return true; break; - case QEvent::MouseMove: - mouseMove( (QMouseEvent*)e ); + case TQEvent::MouseMove: + mouseMove( (TQMouseEvent*)e ); return true; break; @@ -111,7 +111,7 @@ void SMLConnector::setActivated(bool a) } } -void SMLConnector::connector(QRect) +void SMLConnector::connector(TQRect) { if (!m_pStencil) return; @@ -135,7 +135,7 @@ void SMLConnector::connector(QRect) doc->updateView(page); } -void SMLConnector::mousePress( QMouseEvent *e ) +void SMLConnector::mousePress( TQMouseEvent *e ) { if(e->button() == RightButton) { @@ -151,7 +151,7 @@ void SMLConnector::mousePress( QMouseEvent *e ) /** * Tests if we should start rubber banding (always returns true). */ -bool SMLConnector::startRubberBanding( QMouseEvent *e ) +bool SMLConnector::startRubberBanding( TQMouseEvent *e ) { KivioDoc* doc = view()->doc(); KivioPage* pPage = view()->activePage(); @@ -190,12 +190,12 @@ bool SMLConnector::startRubberBanding( QMouseEvent *e ) m_pStencil->customDrag(m_pDragData); - canvas->repaint(); + canvas->tqrepaint(); canvas->setCursor(*m_pConnectorCursor2); return true; } -void SMLConnector::mouseMove( QMouseEvent * e ) +void SMLConnector::mouseMove( TQMouseEvent * e ) { switch( m_mode ) { @@ -208,7 +208,7 @@ void SMLConnector::mouseMove( QMouseEvent * e ) } } -void SMLConnector::continueRubberBanding( QMouseEvent *e ) +void SMLConnector::continueRubberBanding( TQMouseEvent *e ) { KivioCanvas* canvas = view()->canvasWidget(); KoPoint endPoint = canvas->mapFromScreen( e->pos() ); @@ -223,10 +223,10 @@ void SMLConnector::continueRubberBanding( QMouseEvent *e ) m_pStencil->customDrag(m_pDragData); m_pStencil->updateGeometry(); - canvas->repaint(); + canvas->tqrepaint(); } -void SMLConnector::mouseRelease( QMouseEvent *e ) +void SMLConnector::mouseRelease( TQMouseEvent *e ) { switch( m_mode ) { @@ -239,7 +239,7 @@ void SMLConnector::mouseRelease( QMouseEvent *e ) m_mode = stmNone; } -void SMLConnector::endRubberBanding(QMouseEvent *) +void SMLConnector::endRubberBanding(TQMouseEvent *) { connector(view()->canvasWidget()->rect()); m_pStencil = 0; |