From b09bffed6b43262948018dfb0f11890850ddf7c1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 18 Jun 2011 20:34:22 +0000 Subject: TQt4 port kdeadmin This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1237416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kfile-plugins/deb/kfile_deb.cpp | 8 ++++---- kfile-plugins/deb/kfile_deb.h | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'kfile-plugins/deb') diff --git a/kfile-plugins/deb/kfile_deb.cpp b/kfile-plugins/deb/kfile_deb.cpp index 3839764..fdd16f2 100644 --- a/kfile-plugins/deb/kfile_deb.cpp +++ b/kfile-plugins/deb/kfile_deb.cpp @@ -43,10 +43,10 @@ typedef KGenericFactory DebFactory; K_EXPORT_COMPONENT_FACTORY(kfile_deb, DebFactory( "kfile_deb" )) -KDebPlugin::KDebPlugin(TQObject *parent, const char *name, +KDebPlugin::KDebPlugin(TQObject *tqparent, const char *name, const TQStringList &args) - : KFilePlugin(parent, name, args) + : KFilePlugin(tqparent, name, args) { KFileMimeTypeInfo* info = addMimeTypeInfo( "application/x-deb" ); KFileMimeTypeInfo::GroupInfo* group = 0L; @@ -64,7 +64,7 @@ bool KDebPlugin::readInfo( KFileMetaInfo& info, uint /*what*/) KAr debfile (info.path()); if ( !debfile.open( IO_ReadOnly ) ) { - kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()) << endl; + kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()).data() << endl; return false; } @@ -104,7 +104,7 @@ bool KDebPlugin::readInfo( KFileMetaInfo& info, uint /*what*/) char linebuf[100]; controldev.readLine(linebuf, sizeof( linebuf )); TQString line(linebuf); - int fieldstart = line.find(TQRegExp(":"), 0) + 2; + int fieldstart = line.tqfind(TQRegExp(":"), 0) + 2; if (fieldstart == 1) break; TQString fieldname = line.mid(0, fieldstart - 2); TQString fielddata = line.mid(fieldstart, line.length() - fieldstart - 1); diff --git a/kfile-plugins/deb/kfile_deb.h b/kfile-plugins/deb/kfile_deb.h index 8b374b9..14b80a9 100644 --- a/kfile-plugins/deb/kfile_deb.h +++ b/kfile-plugins/deb/kfile_deb.h @@ -27,9 +27,10 @@ class TQStringList; class KDebPlugin: public KFilePlugin { Q_OBJECT + TQ_OBJECT public: - KDebPlugin( TQObject *parent, const char *name, const TQStringList& args ); + KDebPlugin( TQObject *tqparent, const char *name, const TQStringList& args ); virtual bool readInfo( KFileMetaInfo& info, uint what); -- cgit v1.2.1