diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-18 20:34:22 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-18 20:34:22 +0000 |
commit | b09bffed6b43262948018dfb0f11890850ddf7c1 (patch) | |
tree | 138696bfcc7ac01070d0e8ecaa1cdf94611a2bd8 /kfile-plugins/deb | |
parent | 6d43944a7130b9d1b4ae3fba37b774aced8612cf (diff) | |
download | tdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.tar.gz tdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.zip |
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
Diffstat (limited to 'kfile-plugins/deb')
-rw-r--r-- | kfile-plugins/deb/kfile_deb.cpp | 8 | ||||
-rw-r--r-- | kfile-plugins/deb/kfile_deb.h | 3 |
2 files changed, 6 insertions, 5 deletions
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<KDebPlugin> 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); |