diff options
Diffstat (limited to 'kivio/plugins')
28 files changed, 63 insertions, 63 deletions
diff --git a/kivio/plugins/kivioconnectortool/plugin.cpp b/kivio/plugins/kivioconnectortool/plugin.cpp index 848579c9..8a61df93 100644 --- a/kivio/plugins/kivioconnectortool/plugin.cpp +++ b/kivio/plugins/kivioconnectortool/plugin.cpp @@ -31,8 +31,8 @@ K_EXPORT_COMPONENT_FACTORY( libkivioconnectortool, ConnectorToolFactory ) KInstance* ConnectorToolFactory::s_global = 0; -ConnectorToolFactory::ConnectorToolFactory( TQObject* tqparent, const char* name ) -: KLibFactory( tqparent, name ) +ConnectorToolFactory::ConnectorToolFactory( TQObject* parent, const char* name ) +: KLibFactory( parent, name ) { s_global = new KInstance("kivio"); } @@ -42,12 +42,12 @@ ConnectorToolFactory::~ConnectorToolFactory() delete s_global; } -TQObject* ConnectorToolFactory::createObject( TQObject* tqparent, const char*, const char*, const TQStringList& ) +TQObject* ConnectorToolFactory::createObject( TQObject* parent, const char*, const char*, const TQStringList& ) { - if ( !tqparent->inherits("KivioView") ) + if ( !parent->inherits("KivioView") ) return 0; - TQObject *obj = new ConnectorTool( (KivioView*)tqparent ); + TQObject *obj = new ConnectorTool( (KivioView*)parent ); return obj; } diff --git a/kivio/plugins/kivioconnectortool/plugin.h b/kivio/plugins/kivioconnectortool/plugin.h index e8d9803b..267bbbb4 100644 --- a/kivio/plugins/kivioconnectortool/plugin.h +++ b/kivio/plugins/kivioconnectortool/plugin.h @@ -30,10 +30,10 @@ class ConnectorToolFactory : public KLibFactory { Q_OBJECT TQ_OBJECT public: - ConnectorToolFactory( TQObject* tqparent = 0, const char* name = 0 ); + ConnectorToolFactory( TQObject* parent = 0, const char* name = 0 ); ~ConnectorToolFactory(); - virtual TQObject* createObject( TQObject* tqparent = 0, const char* name = 0, + virtual TQObject* createObject( TQObject* parent = 0, const char* name = 0, const char* classname = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() ); static KInstance* global(); diff --git a/kivio/plugins/kivioconnectortool/straight_connector/straight_connector.cpp b/kivio/plugins/kivioconnectortool/straight_connector/straight_connector.cpp index 199e78d6..41ec75e0 100644 --- a/kivio/plugins/kivioconnectortool/straight_connector/straight_connector.cpp +++ b/kivio/plugins/kivioconnectortool/straight_connector/straight_connector.cpp @@ -48,8 +48,8 @@ static KivioStencilSpawnerInfo sinfo = KivioStencilSpawnerInfo("Dave Marotti", " #include <kgenericfactory.h> K_EXPORT_COMPONENT_FACTORY( straight_connector, KGenericFactory<KivioConnectorFactory>( "KivioConnectorFactory" ) ) -KivioConnectorFactory::KivioConnectorFactory(TQObject *tqparent, const char* name, const TQStringList& args) : - KivioStencilFactory(tqparent, name, args) +KivioConnectorFactory::KivioConnectorFactory(TQObject *parent, const char* name, const TQStringList& args) : + KivioStencilFactory(parent, name, args) { kdDebug(43000) << "new straight line connector factory: " << endl; } diff --git a/kivio/plugins/kivioconnectortool/straight_connector/straight_connector.h b/kivio/plugins/kivioconnectortool/straight_connector/straight_connector.h index e0ea7476..c9f1549e 100644 --- a/kivio/plugins/kivioconnectortool/straight_connector/straight_connector.h +++ b/kivio/plugins/kivioconnectortool/straight_connector/straight_connector.h @@ -85,7 +85,7 @@ class KIVIOPLUGINS_EXPORT KivioConnectorFactory : public KivioStencilFactory Q_OBJECT TQ_OBJECT public: - KivioConnectorFactory(TQObject *tqparent=0, const char* name=0, const TQStringList& args = TQStringList()); + KivioConnectorFactory(TQObject *parent=0, const char* name=0, const TQStringList& args = TQStringList()); KivioStencil *NewStencil(const TQString& name); KivioStencil *NewStencil(); TQPixmap *GetIcon(); diff --git a/kivio/plugins/kivioconnectortool/tool_connector.cpp b/kivio/plugins/kivioconnectortool/tool_connector.cpp index a1597f85..ca3ff402 100644 --- a/kivio/plugins/kivioconnectortool/tool_connector.cpp +++ b/kivio/plugins/kivioconnectortool/tool_connector.cpp @@ -47,7 +47,7 @@ #include "polylineconnectorspawner.h" #include "mousetoolaction.h" -ConnectorTool::ConnectorTool( KivioView* tqparent ) : Kivio::MouseTool(tqparent, "Connector Mouse Tool") +ConnectorTool::ConnectorTool( KivioView* parent ) : Kivio::MouseTool(parent, "Connector Mouse Tool") { m_connectorAction = new Kivio::MouseToolAction(i18n("Straight Connector"), "kivio_connector", 0, actionCollection(), "connector"); diff --git a/kivio/plugins/kivioconnectortool/tool_connector.h b/kivio/plugins/kivioconnectortool/tool_connector.h index 7dd1462b..74497053 100644 --- a/kivio/plugins/kivioconnectortool/tool_connector.h +++ b/kivio/plugins/kivioconnectortool/tool_connector.h @@ -40,7 +40,7 @@ class ConnectorTool : public Kivio::MouseTool Q_OBJECT TQ_OBJECT public: - ConnectorTool( KivioView* tqparent ); + ConnectorTool( KivioView* parent ); ~ConnectorTool(); virtual bool processEvent(TQEvent* e); diff --git a/kivio/plugins/kivioselecttool/plugin.cpp b/kivio/plugins/kivioselecttool/plugin.cpp index c6d22e64..fba217c6 100644 --- a/kivio/plugins/kivioselecttool/plugin.cpp +++ b/kivio/plugins/kivioselecttool/plugin.cpp @@ -31,8 +31,8 @@ K_EXPORT_COMPONENT_FACTORY( libkivioselecttool, SelectToolFactory ) KInstance* SelectToolFactory::s_global = 0; -SelectToolFactory::SelectToolFactory( TQObject* tqparent, const char* name ) -: KLibFactory( tqparent, name ) +SelectToolFactory::SelectToolFactory( TQObject* parent, const char* name ) +: KLibFactory( parent, name ) { s_global = new KInstance("kivio"); } @@ -42,12 +42,12 @@ SelectToolFactory::~SelectToolFactory() delete s_global; } -TQObject* SelectToolFactory::createObject( TQObject* tqparent, const char*, const char*, const TQStringList& ) +TQObject* SelectToolFactory::createObject( TQObject* parent, const char*, const char*, const TQStringList& ) { - if ( !tqparent->inherits("KivioView") ) + if ( !parent->inherits("KivioView") ) return 0; - TQObject *obj = new SelectTool( (KivioView*)tqparent ); + TQObject *obj = new SelectTool( (KivioView*)parent ); return obj; } diff --git a/kivio/plugins/kivioselecttool/plugin.h b/kivio/plugins/kivioselecttool/plugin.h index dffe4161..5564327f 100644 --- a/kivio/plugins/kivioselecttool/plugin.h +++ b/kivio/plugins/kivioselecttool/plugin.h @@ -30,10 +30,10 @@ class SelectToolFactory : public KLibFactory { Q_OBJECT TQ_OBJECT public: - SelectToolFactory( TQObject* tqparent = 0, const char* name = 0 ); + SelectToolFactory( TQObject* parent = 0, const char* name = 0 ); ~SelectToolFactory(); - virtual TQObject* createObject( TQObject* tqparent = 0, const char* name = 0, + virtual TQObject* createObject( TQObject* parent = 0, const char* name = 0, const char* classname = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() ); static KInstance* global(); diff --git a/kivio/plugins/kivioselecttool/tool_select.cpp b/kivio/plugins/kivioselecttool/tool_select.cpp index b201f4d4..b6c24c57 100644 --- a/kivio/plugins/kivioselecttool/tool_select.cpp +++ b/kivio/plugins/kivioselecttool/tool_select.cpp @@ -48,7 +48,7 @@ #include "kivio_pluginmanager.h" -SelectTool::SelectTool( KivioView* tqparent ) : Kivio::MouseTool(tqparent, "Selection Mouse Tool") +SelectTool::SelectTool( KivioView* parent ) : Kivio::MouseTool(parent, "Selection Mouse Tool") { view()->pluginManager()->setDefaultTool(this); diff --git a/kivio/plugins/kivioselecttool/tool_select.h b/kivio/plugins/kivioselecttool/tool_select.h index 6e476b99..7a71dabf 100644 --- a/kivio/plugins/kivioselecttool/tool_select.h +++ b/kivio/plugins/kivioselecttool/tool_select.h @@ -56,7 +56,7 @@ class SelectTool : public Kivio::MouseTool Q_OBJECT TQ_OBJECT public: - SelectTool( KivioView* tqparent ); + SelectTool( KivioView* parent ); ~SelectTool(); virtual bool processEvent(TQEvent* e); diff --git a/kivio/plugins/kiviosmlconnector/plugin.cpp b/kivio/plugins/kiviosmlconnector/plugin.cpp index a622f6e3..5c4b74f7 100644 --- a/kivio/plugins/kiviosmlconnector/plugin.cpp +++ b/kivio/plugins/kiviosmlconnector/plugin.cpp @@ -31,8 +31,8 @@ K_EXPORT_COMPONENT_FACTORY( libkiviosmlconnector, SMLConnectorFactory ) KInstance* SMLConnectorFactory::s_global = 0; -SMLConnectorFactory::SMLConnectorFactory( TQObject* tqparent, const char* name ) -: KLibFactory( tqparent, name ) +SMLConnectorFactory::SMLConnectorFactory( TQObject* parent, const char* name ) +: KLibFactory( parent, name ) { s_global = new KInstance("kivio"); } @@ -42,12 +42,12 @@ SMLConnectorFactory::~SMLConnectorFactory() delete s_global; } -TQObject* SMLConnectorFactory::createObject( TQObject* tqparent, const char*, const char*, const TQStringList& ) +TQObject* SMLConnectorFactory::createObject( TQObject* parent, const char*, const char*, const TQStringList& ) { - if ( !tqparent->inherits("KivioView") ) + if ( !parent->inherits("KivioView") ) return 0; - TQObject *obj = new SMLConnector( (KivioView*)tqparent ); + TQObject *obj = new SMLConnector( (KivioView*)parent ); return obj; } diff --git a/kivio/plugins/kiviosmlconnector/plugin.h b/kivio/plugins/kiviosmlconnector/plugin.h index 9868fcc0..0a1f9056 100644 --- a/kivio/plugins/kiviosmlconnector/plugin.h +++ b/kivio/plugins/kiviosmlconnector/plugin.h @@ -30,10 +30,10 @@ class SMLConnectorFactory : public KLibFactory { Q_OBJECT TQ_OBJECT public: - SMLConnectorFactory( TQObject* tqparent = 0, const char* name = 0 ); + SMLConnectorFactory( TQObject* parent = 0, const char* name = 0 ); ~SMLConnectorFactory(); - virtual TQObject* createObject( TQObject* tqparent = 0, const char* name = 0, + virtual TQObject* createObject( TQObject* parent = 0, const char* name = 0, const char* classname = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() ); static KInstance* global(); diff --git a/kivio/plugins/kiviosmlconnector/sml_connector/sml_connector.cpp b/kivio/plugins/kiviosmlconnector/sml_connector/sml_connector.cpp index 3ab38fa4..3745820c 100644 --- a/kivio/plugins/kiviosmlconnector/sml_connector/sml_connector.cpp +++ b/kivio/plugins/kiviosmlconnector/sml_connector/sml_connector.cpp @@ -48,8 +48,8 @@ static KivioStencilSpawnerInfo sinfo = KivioStencilSpawnerInfo( "Ian Reinhart Ge K_EXPORT_COMPONENT_FACTORY( sml_connector, KGenericFactory<KivioSMLConnectorFactory>( "KivioSMLConnectorFactory" ) ) -KivioSMLConnectorFactory::KivioSMLConnectorFactory( TQObject *tqparent, const char* name, const TQStringList& args ) : - KivioStencilFactory( tqparent, name, args ) +KivioSMLConnectorFactory::KivioSMLConnectorFactory( TQObject *parent, const char* name, const TQStringList& args ) : + KivioStencilFactory( parent, name, args ) { kdDebug(43000) << "new sml stencil factory: " << endl; } diff --git a/kivio/plugins/kiviosmlconnector/sml_connector/sml_connector.h b/kivio/plugins/kiviosmlconnector/sml_connector/sml_connector.h index 0be46d46..a50ec750 100644 --- a/kivio/plugins/kiviosmlconnector/sml_connector/sml_connector.h +++ b/kivio/plugins/kiviosmlconnector/sml_connector/sml_connector.h @@ -95,7 +95,7 @@ class KivioSMLConnectorFactory : public KivioStencilFactory Q_OBJECT TQ_OBJECT public: - KivioSMLConnectorFactory(TQObject *tqparent=0, const char* name=0, const TQStringList& args = TQStringList()); + KivioSMLConnectorFactory(TQObject *parent=0, const char* name=0, const TQStringList& args = TQStringList()); KivioStencil *NewStencil(const TQString& name); KivioStencil *NewStencil(); TQPixmap *GetIcon(); diff --git a/kivio/plugins/kiviotargettool/kiviotargettool.cpp b/kivio/plugins/kiviotargettool/kiviotargettool.cpp index 672c0a43..c25fb36b 100644 --- a/kivio/plugins/kiviotargettool/kiviotargettool.cpp +++ b/kivio/plugins/kiviotargettool/kiviotargettool.cpp @@ -32,7 +32,7 @@ #include "kivio_command.h" namespace Kivio { - TargetTool::TargetTool(KivioView* tqparent) : MouseTool(tqparent, "Add Target Mouse Tool") + TargetTool::TargetTool(KivioView* parent) : MouseTool(parent, "Add Target Mouse Tool") { m_targetAction = new Kivio::MouseToolAction(i18n("Add Connector Target"), "add_target", 0, actionCollection(), "addTargetTool"); diff --git a/kivio/plugins/kiviotargettool/kiviotargettool.h b/kivio/plugins/kiviotargettool/kiviotargettool.h index 52286f82..064c4f05 100644 --- a/kivio/plugins/kiviotargettool/kiviotargettool.h +++ b/kivio/plugins/kiviotargettool/kiviotargettool.h @@ -38,7 +38,7 @@ namespace Kivio { Q_OBJECT TQ_OBJECT public: - TargetTool(KivioView* tqparent); + TargetTool(KivioView* parent); ~TargetTool(); virtual bool processEvent(TQEvent* e); diff --git a/kivio/plugins/kiviotargettool/kiviotargettoolfactory.cpp b/kivio/plugins/kiviotargettool/kiviotargettoolfactory.cpp index 599c3a01..048c8e32 100644 --- a/kivio/plugins/kiviotargettool/kiviotargettoolfactory.cpp +++ b/kivio/plugins/kiviotargettool/kiviotargettoolfactory.cpp @@ -24,8 +24,8 @@ K_EXPORT_COMPONENT_FACTORY( libkiviotargettool, KivioTargetToolFactory ) KInstance* KivioTargetToolFactory::s_global = 0; -KivioTargetToolFactory::KivioTargetToolFactory(TQObject *tqparent, const char *name) - : KLibFactory(tqparent, name) +KivioTargetToolFactory::KivioTargetToolFactory(TQObject *parent, const char *name) + : KLibFactory(parent, name) { s_global = new KInstance("kivio"); } @@ -35,12 +35,12 @@ KivioTargetToolFactory::~KivioTargetToolFactory() delete s_global; } -TQObject* KivioTargetToolFactory::createObject( TQObject* tqparent, const char*, const char*, const TQStringList& ) +TQObject* KivioTargetToolFactory::createObject( TQObject* parent, const char*, const char*, const TQStringList& ) { - if ( !tqparent->inherits("KivioView") ) + if ( !parent->inherits("KivioView") ) return 0; - TQObject *obj = new Kivio::TargetTool(static_cast<KivioView*>(TQT_TQWIDGET(tqparent))); + TQObject *obj = new Kivio::TargetTool(static_cast<KivioView*>(TQT_TQWIDGET(parent))); return obj; } diff --git a/kivio/plugins/kiviotargettool/kiviotargettoolfactory.h b/kivio/plugins/kiviotargettool/kiviotargettoolfactory.h index e1ba4521..84619e47 100644 --- a/kivio/plugins/kiviotargettool/kiviotargettoolfactory.h +++ b/kivio/plugins/kiviotargettool/kiviotargettoolfactory.h @@ -31,10 +31,10 @@ class KivioTargetToolFactory : public KLibFactory Q_OBJECT TQ_OBJECT public: - KivioTargetToolFactory(TQObject *tqparent = 0, const char *name = 0); + KivioTargetToolFactory(TQObject *parent = 0, const char *name = 0); ~KivioTargetToolFactory(); - virtual TQObject* createObject( TQObject* tqparent = 0, const char* name = 0, + virtual TQObject* createObject( TQObject* parent = 0, const char* name = 0, const char* classname = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() ); static KInstance* global(); diff --git a/kivio/plugins/kiviotexttool/plugin.cpp b/kivio/plugins/kiviotexttool/plugin.cpp index cd9a43ec..fd173935 100644 --- a/kivio/plugins/kiviotexttool/plugin.cpp +++ b/kivio/plugins/kiviotexttool/plugin.cpp @@ -31,8 +31,8 @@ K_EXPORT_COMPONENT_FACTORY( libkiviotexttool, TextToolFactory ) KInstance* TextToolFactory::s_global = 0; -TextToolFactory::TextToolFactory( TQObject* tqparent, const char* name ) -: KLibFactory( tqparent, name ) +TextToolFactory::TextToolFactory( TQObject* parent, const char* name ) +: KLibFactory( parent, name ) { s_global = new KInstance("kivio"); } @@ -42,12 +42,12 @@ TextToolFactory::~TextToolFactory() delete s_global; } -TQObject* TextToolFactory::createObject( TQObject* tqparent, const char*, const char*, const TQStringList& ) +TQObject* TextToolFactory::createObject( TQObject* parent, const char*, const char*, const TQStringList& ) { - if ( !tqparent->inherits("KivioView") ) + if ( !parent->inherits("KivioView") ) return 0; - TQObject *obj = new TextTool( (KivioView*)tqparent ); + TQObject *obj = new TextTool( (KivioView*)parent ); return obj; } diff --git a/kivio/plugins/kiviotexttool/plugin.h b/kivio/plugins/kiviotexttool/plugin.h index 1e30ddb0..f6194c14 100644 --- a/kivio/plugins/kiviotexttool/plugin.h +++ b/kivio/plugins/kiviotexttool/plugin.h @@ -30,10 +30,10 @@ class TextToolFactory : public KLibFactory { Q_OBJECT TQ_OBJECT public: - TextToolFactory( TQObject* tqparent = 0, const char* name = 0 ); + TextToolFactory( TQObject* parent = 0, const char* name = 0 ); ~TextToolFactory(); - virtual TQObject* createObject( TQObject* tqparent = 0, const char* name = 0, + virtual TQObject* createObject( TQObject* parent = 0, const char* name = 0, const char* classname = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() ); static KInstance* global(); diff --git a/kivio/plugins/kiviotexttool/stenciltexteditor.cpp b/kivio/plugins/kiviotexttool/stenciltexteditor.cpp index a68b9548..49a42589 100644 --- a/kivio/plugins/kiviotexttool/stenciltexteditor.cpp +++ b/kivio/plugins/kiviotexttool/stenciltexteditor.cpp @@ -35,8 +35,8 @@ namespace Kivio { -StencilTextEditor::StencilTextEditor(const TQString& caption, TQWidget *tqparent, const char *name) - : KDialogBase(tqparent, name, true, caption, KDialogBase::Ok|KDialogBase::Cancel) +StencilTextEditor::StencilTextEditor(const TQString& caption, TQWidget *parent, const char *name) + : KDialogBase(parent, name, true, caption, KDialogBase::Ok|KDialogBase::Cancel) { m_hAlign = -1; m_vAlign = -1; diff --git a/kivio/plugins/kiviotexttool/stenciltexteditor.h b/kivio/plugins/kiviotexttool/stenciltexteditor.h index d57cb9dd..7f61c5aa 100644 --- a/kivio/plugins/kiviotexttool/stenciltexteditor.h +++ b/kivio/plugins/kiviotexttool/stenciltexteditor.h @@ -36,7 +36,7 @@ class StencilTextEditor : public KDialogBase Q_OBJECT TQ_OBJECT public: - StencilTextEditor(const TQString& caption, TQWidget *tqparent = 0, const char *name = 0); + StencilTextEditor(const TQString& caption, TQWidget *parent = 0, const char *name = 0); ~StencilTextEditor(); void setFont(const TQFont& font); diff --git a/kivio/plugins/kiviotexttool/tool_text.cpp b/kivio/plugins/kiviotexttool/tool_text.cpp index 645a79a4..7d449ae0 100644 --- a/kivio/plugins/kiviotexttool/tool_text.cpp +++ b/kivio/plugins/kiviotexttool/tool_text.cpp @@ -46,7 +46,7 @@ #include "stenciltexteditor.h" -TextTool::TextTool( KivioView* tqparent ) : Kivio::MouseTool(tqparent, "Text Mouse Tool") +TextTool::TextTool( KivioView* parent ) : Kivio::MouseTool(parent, "Text Mouse Tool") { m_textAction = new Kivio::MouseToolAction( i18n("Text Tool"), "text", Key_F2, actionCollection(), "text" ); connect(m_textAction, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setActivated(bool))); diff --git a/kivio/plugins/kiviotexttool/tool_text.h b/kivio/plugins/kiviotexttool/tool_text.h index 1bc43bb9..f6c4870a 100644 --- a/kivio/plugins/kiviotexttool/tool_text.h +++ b/kivio/plugins/kiviotexttool/tool_text.h @@ -38,7 +38,7 @@ class KIVIO_EXPORT TextTool : public Kivio::MouseTool Q_OBJECT TQ_OBJECT public: - TextTool( KivioView* tqparent ); + TextTool( KivioView* parent ); ~TextTool(); virtual bool processEvent(TQEvent* e); diff --git a/kivio/plugins/kiviozoomtool/plugin.cpp b/kivio/plugins/kiviozoomtool/plugin.cpp index 6248e432..4ecd452d 100644 --- a/kivio/plugins/kiviozoomtool/plugin.cpp +++ b/kivio/plugins/kiviozoomtool/plugin.cpp @@ -31,8 +31,8 @@ K_EXPORT_COMPONENT_FACTORY( libkiviozoomtool, ZoomToolFactory ) KInstance* ZoomToolFactory::s_global = 0; -ZoomToolFactory::ZoomToolFactory( TQObject* tqparent, const char* name ) -: KLibFactory( tqparent, name ) +ZoomToolFactory::ZoomToolFactory( TQObject* parent, const char* name ) +: KLibFactory( parent, name ) { s_global = new KInstance("kivio"); } @@ -42,12 +42,12 @@ ZoomToolFactory::~ZoomToolFactory() delete s_global; } -TQObject* ZoomToolFactory::createObject( TQObject* tqparent, const char*, const char*, const TQStringList& ) +TQObject* ZoomToolFactory::createObject( TQObject* parent, const char*, const char*, const TQStringList& ) { - if ( !tqparent->inherits("KivioView") ) + if ( !parent->inherits("KivioView") ) return 0; - TQObject* obj = new ZoomTool( (KivioView*)tqparent ); + TQObject* obj = new ZoomTool( (KivioView*)parent ); return obj; } diff --git a/kivio/plugins/kiviozoomtool/plugin.h b/kivio/plugins/kiviozoomtool/plugin.h index 42ceb091..0bdfde14 100644 --- a/kivio/plugins/kiviozoomtool/plugin.h +++ b/kivio/plugins/kiviozoomtool/plugin.h @@ -30,10 +30,10 @@ class ZoomToolFactory : public KLibFactory { Q_OBJECT TQ_OBJECT public: - ZoomToolFactory( TQObject* tqparent = 0, const char* name = 0 ); + ZoomToolFactory( TQObject* parent = 0, const char* name = 0 ); ~ZoomToolFactory(); - virtual TQObject* createObject( TQObject* tqparent = 0, const char* name = 0, + virtual TQObject* createObject( TQObject* parent = 0, const char* name = 0, const char* classname = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() ); static KInstance* global(); diff --git a/kivio/plugins/kiviozoomtool/tool_zoom.cpp b/kivio/plugins/kiviozoomtool/tool_zoom.cpp index f690c9f3..01a148be 100644 --- a/kivio/plugins/kiviozoomtool/tool_zoom.cpp +++ b/kivio/plugins/kiviozoomtool/tool_zoom.cpp @@ -38,7 +38,7 @@ #include <tqapplication.h> #include <tqcursor.h> -ZoomTool::ZoomTool(KivioView* tqparent) : Kivio::MouseTool(tqparent, "Zoom Mouse Tool") +ZoomTool::ZoomTool(KivioView* parent) : Kivio::MouseTool(parent, "Zoom Mouse Tool") { m_zoomAction = new KRadioAction(i18n("&Zoom"), "viewmag", CTRL + ALT + Key_Z, actionCollection(), "zoom"); m_zoomAction->setWhatsThis(i18n("By pressing this button you can zoom in on a specific area.")); @@ -53,8 +53,8 @@ ZoomTool::ZoomTool(KivioView* tqparent) : Kivio::MouseTool(tqparent, "Zoom Mouse KoZoomAction* viewZoom = new KoZoomAction(i18n("Zoom &Level"), "viewmag", 0, actionCollection(), "viewZoom" ); viewZoom->setWhatsThis(i18n("This allows you to zoom in or out of a document. You can either choose one of the predefined zoomfactors or enter a new zoomfactor (in percent).")); - connect(viewZoom, TQT_SIGNAL(zoomChanged(const TQString&)), tqparent, TQT_SLOT(viewZoom(const TQString&))); - connect(tqparent, TQT_SIGNAL(zoomChanged(int)), viewZoom, TQT_SLOT(setZoom(int))); + connect(viewZoom, TQT_SIGNAL(zoomChanged(const TQString&)), parent, TQT_SLOT(viewZoom(const TQString&))); + connect(parent, TQT_SIGNAL(zoomChanged(int)), viewZoom, TQT_SLOT(setZoom(int))); m_pPlus = KStdAction::zoomIn(this, TQT_SLOT(zoomPlus()), actionCollection(), "zoomPlus"); m_pPlus->setWhatsThis(i18n("You can zoom in on the document by pressing this button.")); diff --git a/kivio/plugins/kiviozoomtool/tool_zoom.h b/kivio/plugins/kiviozoomtool/tool_zoom.h index 15700f75..1cb77431 100644 --- a/kivio/plugins/kiviozoomtool/tool_zoom.h +++ b/kivio/plugins/kiviozoomtool/tool_zoom.h @@ -36,7 +36,7 @@ class ZoomTool : public Kivio::MouseTool Q_OBJECT TQ_OBJECT public: - ZoomTool(KivioView* tqparent); + ZoomTool(KivioView* parent); virtual ~ZoomTool(); virtual bool processEvent(TQEvent* e); |