summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/k3bproject/kfile_k3bprojectfileplugin.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 19:21:21 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 19:21:21 +0000
commitd8cc8bdfa7fa624a526d5aa1626974e1444cb799 (patch)
treef295f1c545b319963d5357af79fe08991d8141d9 /kfile-plugins/k3bproject/kfile_k3bprojectfileplugin.cpp
parent2a39a080579fb52a2599c02b2939795385b89093 (diff)
downloadk3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.tar.gz
k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.zip
TQt4 port k3b
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfile-plugins/k3bproject/kfile_k3bprojectfileplugin.cpp')
-rw-r--r--kfile-plugins/k3bproject/kfile_k3bprojectfileplugin.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kfile-plugins/k3bproject/kfile_k3bprojectfileplugin.cpp b/kfile-plugins/k3bproject/kfile_k3bprojectfileplugin.cpp
index b868c94..197d9e5 100644
--- a/kfile-plugins/k3bproject/kfile_k3bprojectfileplugin.cpp
+++ b/kfile-plugins/k3bproject/kfile_k3bprojectfileplugin.cpp
@@ -24,24 +24,24 @@
#include <kgenericfactory.h>
-#include <qtextstream.h>
-#include <qdom.h>
-#include <qfile.h>
+#include <tqtextstream.h>
+#include <tqdom.h>
+#include <tqfile.h>
K_EXPORT_COMPONENT_FACTORY(kfile_k3b, KGenericFactory<K3bProjectFilePlugin>("kfile_k3b"))
-K3bProjectFilePlugin::K3bProjectFilePlugin( QObject *parent, const char *name,
- const QStringList &args)
- : KFilePlugin(parent, name, args)
+K3bProjectFilePlugin::K3bProjectFilePlugin( TQObject *tqparent, const char *name,
+ const TQStringList &args)
+ : KFilePlugin(tqparent, name, args)
{
KFileMimeTypeInfo* info = addMimeTypeInfo( "application/x-k3b" );
KFileMimeTypeInfo::GroupInfo* group = addGroupInfo( info, "General", i18n("General") );
- addItemInfo( group, "documenttype", i18n("Document Type"), QVariant::String );
+ addItemInfo( group, "documenttype", i18n("Document Type"), TQVariant::String );
}
@@ -54,12 +54,12 @@ bool K3bProjectFilePlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
// open the file
bool success = false;
- QDomDocument xmlDoc;
+ TQDomDocument xmlDoc;
// try opening a store
KoStore* store = KoStore::createStore( info.url().path(), KoStore::Read );
if( store && !store->bad() && store->open( "maindata.xml" ) ) {
- QIODevice* dev = store->device();
+ TQIODevice* dev = store->device();
dev->open( IO_ReadOnly );
if( xmlDoc.setContent( dev ) )
success = true;
@@ -93,7 +93,7 @@ bool K3bProjectFilePlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
success = false;
}
- QString stringType;
+ TQString stringType;
switch( type ) {
case K3bDoc::AUDIO:
stringType = i18n("Audio CD");