summaryrefslogtreecommitdiffstats
path: root/kivio/kiviopart/kiviosdk/kivio_py_stencil_spawner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kivio/kiviopart/kiviosdk/kivio_py_stencil_spawner.cpp')
-rw-r--r--kivio/kiviopart/kiviosdk/kivio_py_stencil_spawner.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kivio/kiviopart/kiviosdk/kivio_py_stencil_spawner.cpp b/kivio/kiviopart/kiviosdk/kivio_py_stencil_spawner.cpp
index e8713917..8c4279e1 100644
--- a/kivio/kiviopart/kiviosdk/kivio_py_stencil_spawner.cpp
+++ b/kivio/kiviopart/kiviosdk/kivio_py_stencil_spawner.cpp
@@ -29,14 +29,14 @@
#include "kivio_stencil_spawner_info.h"
#include <iostream>
-#include <qdom.h>
-#include <qfile.h>
-#include <qiodevice.h>
-#include <qpainter.h>
-#include <qpoint.h>
-#include <qpixmap.h>
-#include <qrect.h>
-#include <qfileinfo.h>
+#include <tqdom.h>
+#include <tqfile.h>
+#include <tqiodevice.h>
+#include <tqpainter.h>
+#include <tqpoint.h>
+#include <tqpixmap.h>
+#include <tqrect.h>
+#include <tqfileinfo.h>
#include <kdebug.h>
@@ -47,7 +47,7 @@ KivioPyStencilSpawner::KivioPyStencilSpawner( KivioStencilSpawnerSet *p )
m_pStencil = new KivioPyStencil();
m_pStencil->setSpawner(this);
- m_pTargets = new QPtrList<KivioConnectorTarget>;
+ m_pTargets = new TQPtrList<KivioConnectorTarget>;
m_pTargets->setAutoDelete(true);
}
@@ -68,22 +68,22 @@ KivioPyStencilSpawner::~KivioPyStencilSpawner()
kdDebug(43000) << "* PyStencilSpawner "<< m_pInfo->id() << " deleted" << endl;
}
-QDomElement KivioPyStencilSpawner::saveXML( QDomDocument &doc )
+TQDomElement KivioPyStencilSpawner::saveXML( TQDomDocument &doc )
{
- QDomElement spawnE = doc.createElement("KivioPyStencilSpawner");
+ TQDomElement spawnE = doc.createElement("KivioPyStencilSpawner");
XmlWriteString( spawnE, "id", m_pInfo->id() );
return spawnE;
}
-bool KivioPyStencilSpawner::load( const QString &file )
+bool KivioPyStencilSpawner::load( const TQString &file )
{
KivioConnectorTarget *pTarget;
- QDomDocument d("test");
+ TQDomDocument d("test");
- m_filename = QString(file);
- QFile f(file);
+ m_filename = TQString(file);
+ TQFile f(file);
if( f.open( IO_ReadOnly )==false )
{
@@ -93,10 +93,10 @@ bool KivioPyStencilSpawner::load( const QString &file )
d.setContent(&f);
- QDomElement root = d.documentElement();
- QDomElement e;
- QDomNode node = root.firstChild();
- QString nodeName;
+ TQDomElement root = d.documentElement();
+ TQDomElement e;
+ TQDomNode node = root.firstChild();
+ TQString nodeName;
while( !node.isNull() )
{
@@ -104,7 +104,7 @@ bool KivioPyStencilSpawner::load( const QString &file )
if( nodeName.compare("KivioPyStencilSpawnerInfo")==0 )
{
- m_pInfo->loadXML( (const QDomElement)node.toElement() );
+ m_pInfo->loadXML( (const TQDomElement)node.toElement() );
}
else if( nodeName.compare("init")==0 )
{
@@ -143,11 +143,11 @@ bool KivioPyStencilSpawner::load( const QString &file )
}
// Now load the xpm
- QFileInfo finfo(file);
- QString pixFile = finfo.dirPath(true) + "/" + finfo.baseName() + ".xpm";
+ TQFileInfo finfo(file);
+ TQString pixFile = finfo.dirPath(true) + "/" + finfo.baseName() + ".xpm";
if(!m_icon.load( pixFile )) {
- QString pixFile = finfo.dirPath(true) + "/" + finfo.baseName() + ".png";
+ TQString pixFile = finfo.dirPath(true) + "/" + finfo.baseName() + ".png";
m_icon.load( pixFile );
}