summaryrefslogtreecommitdiffstats
path: root/kviewshell/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kviewshell/main.cpp')
-rw-r--r--kviewshell/main.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kviewshell/main.cpp b/kviewshell/main.cpp
index c87cb07e..1a858049 100644
--- a/kviewshell/main.cpp
+++ b/kviewshell/main.cpp
@@ -9,7 +9,7 @@
#include <kurl.h>
#include <klocale.h>
#include <kaboutdata.h>
-#include <qdir.h>
+#include <tqdir.h>
#include <stdlib.h>
@@ -88,20 +88,20 @@ int main(int argc, char **argv)
KURL url(args->url(0));
if (!args->url(0).isValid()) {
- kdError(1223) << QString(I18N_NOOP("The URL %1 is not well-formed.")).arg(args->arg(0)) << endl;
+ kdError(1223) << TQString(I18N_NOOP("The URL %1 is not well-formed.")).arg(args->arg(0)) << endl;
return -1;
}
if (!args->url(0).isLocalFile()) {
- kdError(1223) << QString(I18N_NOOP("The URL %1 does not point to a local file. You can only specify local "
+ kdError(1223) << TQString(I18N_NOOP("The URL %1 does not point to a local file. You can only specify local "
"files if you are using the '--unique' option.")).arg(args->arg(0)) << endl;
return -1;
}
- QString qualPath = QFileInfo(args->url(0).path()).absFilePath();
+ TQString qualPath = TQFileInfo(args->url(0).path()).absFilePath();
app.dcopClient()->attach();
- QCString id = app.dcopClient()->registerAs("unique-kviewshell");
+ TQCString id = app.dcopClient()->registerAs("unique-kviewshell");
if (id.isNull())
kdError(1223) << "There was an error using dcopClient()->registerAs()." << endl;
QCStringList apps = app.dcopClient()->registeredApplications();
@@ -109,22 +109,22 @@ int main(int argc, char **argv)
{
if ((*it).find("kviewshell") == 0)
{
- QByteArray data, replyData;
- QCString replyType;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data, replyData;
+ TQCString replyType;
+ TQDataStream arg(data, IO_WriteOnly);
bool result;
arg << qualPath.stripWhiteSpace();
- if (!app.dcopClient()->call( *it, "kmultipage", "is_file_loaded(QString)", data, replyType, replyData))
+ if (!app.dcopClient()->call( *it, "kmultipage", "is_file_loaded(TQString)", data, replyType, replyData))
kdError(1223) << "There was an error using DCOP." << endl;
else
{
- QDataStream reply(replyData, IO_ReadOnly);
+ TQDataStream reply(replyData, IO_ReadOnly);
if (replyType == "bool")
{
reply >> result;
if (result == true)
{
- if (app.dcopClient()->send(*it, "kmultipage", "jumpToReference(QString)", args->url(0).ref()) == true)
+ if (app.dcopClient()->send(*it, "kmultipage", "jumpToReference(TQString)", args->url(0).ref()) == true)
{
app.dcopClient()->detach();
return 0;
@@ -173,7 +173,7 @@ int main(int argc, char **argv)
// If the url doesn't already has a reference part, add the
// argument of --goto to the url as reference, to make the
// KViewShell jump to this page.
- QString reference = args->getOption("goto");
+ TQString reference = args->getOption("goto");
url.setHTMLRef(reference);
}
shell->openURL(url);