summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/lnk
diff options
context:
space:
mode:
Diffstat (limited to 'kfile-plugins/lnk')
-rw-r--r--kfile-plugins/lnk/kfile_lnk.cpp14
-rw-r--r--kfile-plugins/lnk/kfile_lnk.h2
-rw-r--r--kfile-plugins/lnk/lnkforward.cpp10
-rw-r--r--kfile-plugins/lnk/read_lnk.cpp6
-rw-r--r--kfile-plugins/lnk/read_lnk.h10
5 files changed, 21 insertions, 21 deletions
diff --git a/kfile-plugins/lnk/kfile_lnk.cpp b/kfile-plugins/lnk/kfile_lnk.cpp
index 6d8ea94..eb9e106 100644
--- a/kfile-plugins/lnk/kfile_lnk.cpp
+++ b/kfile-plugins/lnk/kfile_lnk.cpp
@@ -35,8 +35,8 @@ K_EXPORT_COMPONENT_FACTORY(kfile_lnk, lnkFactory( "kfile_lnk" ))
//--------------------------------------------------------------------------------
-lnkPlugin::lnkPlugin(QObject *parent, const char *name,
- const QStringList &args)
+lnkPlugin::lnkPlugin(TQObject *parent, const char *name,
+ const TQStringList &args)
: KFilePlugin(parent, name, args)
{
KFileMimeTypeInfo* info = addMimeTypeInfo( "application/x-win-lnk" );
@@ -48,12 +48,12 @@ lnkPlugin::lnkPlugin(QObject *parent, const char *name,
KFileMimeTypeInfo::ItemInfo* item;
// our new items in the group
- item = addItemInfo(group, "TargetSize", i18n("Size of Target"), QVariant::Int);
+ item = addItemInfo(group, "TargetSize", i18n("Size of Target"), TQVariant::Int);
setUnit(item, KFileMimeTypeInfo::Bytes);
- addItemInfo(group, "Where", i18n("Location"), QVariant::String);
- addItemInfo(group, "PointsTo", i18n("Points To"), QVariant::String);
- addItemInfo(group, "Description", i18n("Description"), QVariant::String);
+ addItemInfo(group, "Where", i18n("Location"), TQVariant::String);
+ addItemInfo(group, "PointsTo", i18n("Points To"), TQVariant::String);
+ addItemInfo(group, "Description", i18n("Description"), TQVariant::String);
}
//--------------------------------------------------------------------------------
@@ -76,7 +76,7 @@ bool lnkPlugin::readInfo( KFileMetaInfo& info, uint /*what*/)
if ( ! lnkInfo.isNetworkPath )
{
appendItem(group, "Where", i18n("on Windows disk: %1").arg(lnkInfo.volumeName)); // volume label
- appendItem(group, "PointsTo", QString("%1%2").arg(lnkInfo.driveName).arg(lnkInfo.path));
+ appendItem(group, "PointsTo", TQString("%1%2").arg(lnkInfo.driveName).arg(lnkInfo.path));
}
else
{
diff --git a/kfile-plugins/lnk/kfile_lnk.h b/kfile-plugins/lnk/kfile_lnk.h
index 3ee4ae8..6f48013 100644
--- a/kfile-plugins/lnk/kfile_lnk.h
+++ b/kfile-plugins/lnk/kfile_lnk.h
@@ -37,7 +37,7 @@ class lnkPlugin: public KFilePlugin
Q_OBJECT
public:
- lnkPlugin( QObject *parent, const char *name, const QStringList& args );
+ lnkPlugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what);
};
diff --git a/kfile-plugins/lnk/lnkforward.cpp b/kfile-plugins/lnk/lnkforward.cpp
index a79a7db..af4492b 100644
--- a/kfile-plugins/lnk/lnkforward.cpp
+++ b/kfile-plugins/lnk/lnkforward.cpp
@@ -72,9 +72,9 @@ int LNKForwarder::run(KCmdLineArgs *args)
bool ret = readLNK(args->arg(0), info);
if ( ! ret ) return 1;
- info.path.replace(QChar('\\'), QChar('/'));
+ info.path.replace(TQChar('\\'), TQChar('/'));
- QString path;
+ TQString path;
if ( info.isNetworkPath )
{
@@ -109,8 +109,8 @@ int LNKForwarder::run(KCmdLineArgs *args)
kdDebug(7034) << "running:" << path << endl;
KRun * run = new KRun(path);
- QObject::connect(run, SIGNAL(finished()), this, SLOT(delayedQuit()));
- QObject::connect(run, SIGNAL(error()), this, SLOT(delayedQuit()));
+ TQObject::connect(run, TQT_SIGNAL(finished()), this, TQT_SLOT(delayedQuit()));
+ TQObject::connect(run, TQT_SIGNAL(error()), this, TQT_SLOT(delayedQuit()));
return exec();
}
@@ -122,7 +122,7 @@ void LNKForwarder::delayedQuit()
{
// Quit in 2 seconds. This leaves time for KRun to pop up
// "app not found" in KProcessRunner, if that was the case.
- QTimer::singleShot(2000, this, SLOT(deref()));
+ TQTimer::singleShot(2000, this, TQT_SLOT(deref()));
}
//--------------------------------------------------------------------------------
diff --git a/kfile-plugins/lnk/read_lnk.cpp b/kfile-plugins/lnk/read_lnk.cpp
index 2d627fb..f65b657 100644
--- a/kfile-plugins/lnk/read_lnk.cpp
+++ b/kfile-plugins/lnk/read_lnk.cpp
@@ -62,7 +62,7 @@ bool readLNK(const KURL &url, LNKInfo &info)
{
const char* lnkFile = 0;
- QString tempFile;
+ TQString tempFile;
if ( KIO::NetAccess::download(url, tempFile, 0) )
lnkFile = tempFile.latin1();
else
@@ -156,7 +156,7 @@ bool readLNK(const KURL &url, LNKInfo &info)
{
info.volumeName = (start + loc.localVolume + 0x10); // volume label
- info.path = QString::null;
+ info.path = TQString::null;
if ( *(start + loc.basePath) )
{
@@ -181,7 +181,7 @@ bool readLNK(const KURL &url, LNKInfo &info)
}
else // network path
{
- info.path = QString("%1\\%2")
+ info.path = TQString("%1\\%2")
.arg(start + loc.netVolume + 0x14) // network share name
.arg(start + loc.pathname);
}
diff --git a/kfile-plugins/lnk/read_lnk.h b/kfile-plugins/lnk/read_lnk.h
index da947a1..ff8fe63 100644
--- a/kfile-plugins/lnk/read_lnk.h
+++ b/kfile-plugins/lnk/read_lnk.h
@@ -24,7 +24,7 @@
#ifndef _READ_LNK_H_
#define _READ_LNK_H_
-#include <qstring.h>
+#include <tqstring.h>
class KURL;
struct LNKInfo
@@ -35,10 +35,10 @@ struct LNKInfo
bool isNetworkPath;
bool isDirectory;
bool isFileOrDir;
- QString volumeName;
- QString driveName;
- QString path;
- QString description;
+ TQString volumeName;
+ TQString driveName;
+ TQString path;
+ TQString description;
};
bool readLNK(const KURL &url, LNKInfo &info);