diff options
| author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 23:15:51 +0000 |
|---|---|---|
| committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 23:15:51 +0000 |
| commit | 6b1b516f42036cf9eff691dba3fd6e9eab82a7e1 (patch) | |
| tree | 6830f75fd57d0fac7e33c097ee98b210e90c5239 /src/pluginloader/ripperpluginloader.cpp | |
| parent | 6318b8bb3ef964cfa99ba454a2630779cc9ac3ec (diff) | |
| download | soundkonverter-6b1b516f42036cf9eff691dba3fd6e9eab82a7e1.tar.gz soundkonverter-6b1b516f42036cf9eff691dba3fd6e9eab82a7e1.zip | |
TQt4 port soundkonverter
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/soundkonverter@1239038 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/pluginloader/ripperpluginloader.cpp')
| -rwxr-xr-x | src/pluginloader/ripperpluginloader.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/pluginloader/ripperpluginloader.cpp b/src/pluginloader/ripperpluginloader.cpp index 9c1f9d4..780efc8 100755 --- a/src/pluginloader/ripperpluginloader.cpp +++ b/src/pluginloader/ripperpluginloader.cpp @@ -1,7 +1,7 @@ #include "ripperpluginloader.h" -#include <qfile.h> +#include <tqfile.h> #include <klocale.h> @@ -19,9 +19,9 @@ RipperPluginLoader::RipperPluginLoader() RipperPluginLoader::~RipperPluginLoader() {} -int RipperPluginLoader::verifyFile( QString fileName ) +int RipperPluginLoader::verifyFile( TQString fileName ) { - QFile opmlFile( fileName ); + TQFile opmlFile( fileName ); if( !opmlFile.open( IO_ReadOnly ) ) { return -1; } @@ -30,10 +30,10 @@ int RipperPluginLoader::verifyFile( QString fileName ) } opmlFile.close(); - QDomElement root = domTree.documentElement(); + TQDomElement root = domTree.documentElement(); if( root.attribute("type") != "ripper" ) return -1; int version; - QDomNode node; + TQDomNode node; node = root.firstChild(); while( !node.isNull() ) { if( node.isElement() && node.nodeName() == "info" ) { @@ -45,17 +45,17 @@ int RipperPluginLoader::verifyFile( QString fileName ) return version; } -RipperPlugin* RipperPluginLoader::loadFile( QString fileName ) +RipperPlugin* RipperPluginLoader::loadFile( TQString fileName ) { int t_int; float t_float; - QString t_str; + TQString t_str; RipperPlugin* plugin = new RipperPlugin(); plugin->info.version = -1; // if something goes wrong, we can see that by looking at plugin->info.version plugin->filePathName = fileName; - QFile opmlFile( fileName ); + TQFile opmlFile( fileName ); if( !opmlFile.open( IO_ReadOnly ) ) { return plugin; } @@ -64,9 +64,9 @@ RipperPlugin* RipperPluginLoader::loadFile( QString fileName ) } opmlFile.close(); - QDomElement root = domTree.documentElement(); + TQDomElement root = domTree.documentElement(); if( root.attribute("type") != "ripper" ) return plugin; - QDomNode node, sub1Node; + TQDomNode node, sub1Node; node = root.firstChild(); while( !node.isNull() ) { |
