From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kfile-plugins/vcf/kfile_vcf.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kfile-plugins/vcf/kfile_vcf.cpp') diff --git a/kfile-plugins/vcf/kfile_vcf.cpp b/kfile-plugins/vcf/kfile_vcf.cpp index f9440f6d..76b3383c 100644 --- a/kfile-plugins/vcf/kfile_vcf.cpp +++ b/kfile-plugins/vcf/kfile_vcf.cpp @@ -26,15 +26,15 @@ #include #include -#include -#include +#include +#include typedef KGenericFactory VcfFactory; K_EXPORT_COMPONENT_FACTORY(kfile_vcf, VcfFactory( "kfile_vcf" )) -KVcfPlugin::KVcfPlugin(QObject *parent, const char *name, - const QStringList &args) +KVcfPlugin::KVcfPlugin(TQObject *parent, const char *name, + const TQStringList &args) : KFilePlugin(parent, name, args) { @@ -46,25 +46,25 @@ KVcfPlugin::KVcfPlugin(QObject *parent, const char *name, KFileMimeTypeInfo::ItemInfo* item; - item = addItemInfo(group, "Name", i18n("Name"), QVariant::String); - item = addItemInfo(group, "Email", i18n("Email"), QVariant::String); - item = addItemInfo(group, "Telephone", i18n("Telephone"), QVariant::String); + item = addItemInfo(group, "Name", i18n("Name"), TQVariant::String); + item = addItemInfo(group, "Email", i18n("Email"), TQVariant::String); + item = addItemInfo(group, "Telephone", i18n("Telephone"), TQVariant::String); } bool KVcfPlugin::readInfo( KFileMetaInfo& info, uint /*what*/ ) { - QFile file(info.path()); + TQFile file(info.path()); if (!file.open(IO_ReadOnly)) { - kdDebug(7034) << "Couldn't open " << QFile::encodeName(info.path()) << endl; + kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()) << endl; return false; } - // even the vcard thumbnail QString::fromUtf8(buf_name));creator reads the full file ... + // even the vcard thumbnail TQString::fromUtf8(buf_name));creator reads the full file ... // The following is partly copied from there - QString contents = file.readAll(); + TQString contents = file.readAll(); file.close(); KABC::VCardConverter converter; @@ -73,7 +73,7 @@ bool KVcfPlugin::readInfo( KFileMetaInfo& info, uint /*what*/ ) KFileMetaInfoGroup group = appendGroup(info, "Technical"); // prepare the text - QString name = addr.formattedName().simplifyWhiteSpace(); + TQString name = addr.formattedName().simplifyWhiteSpace(); if ( name.isEmpty() ) name = addr.givenName() + " " + addr.familyName(); name = name.simplifyWhiteSpace(); @@ -85,9 +85,9 @@ bool KVcfPlugin::readInfo( KFileMetaInfo& info, uint /*what*/ ) appendItem(group, "Email", addr.preferredEmail()); KABC::PhoneNumber::List pnList = addr.phoneNumbers(); - QStringList phoneNumbers; + TQStringList phoneNumbers; for (unsigned int no=0; no