summaryrefslogtreecommitdiffstats
path: root/kivio/kiviopart/kiviosdk/kivio_py_stencil_spawner.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kivio/kiviopart/kiviosdk/kivio_py_stencil_spawner.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-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/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 );
}