summaryrefslogtreecommitdiffstats
path: root/kfaxview/main.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kfaxview/main.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfaxview/main.cpp')
-rw-r--r--kfaxview/main.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kfaxview/main.cpp b/kfaxview/main.cpp
index 8e967a96..05692315 100644
--- a/kfaxview/main.cpp
+++ b/kfaxview/main.cpp
@@ -8,7 +8,7 @@
#include <kurl.h>
#include <klocale.h>
#include <kaboutdata.h>
-#include <qdir.h>
+#include <tqdir.h>
#include <stdlib.h>
@@ -97,22 +97,22 @@ int main(int argc, char** argv)
if (!url.isValid())
{
- kdError(4300) << QString(I18N_NOOP("The URL %1 is not well-formed.")).arg(args->arg(0)) << endl;
+ kdError(4300) << TQString(I18N_NOOP("The URL %1 is not well-formed.")).arg(args->arg(0)) << endl;
return -1;
}
if (!url.isLocalFile())
{
- kdError(4300) << QString(I18N_NOOP("The URL %1 does not point to a local file. You can only specify local "
+ kdError(4300) << 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(url.path()).absFilePath();
+ TQString qualPath = TQFileInfo(url.path()).absFilePath();
app.dcopClient()->attach();
// We need to register as "kviewshell" to stay compatible with existing DCOP-skripts.
- QCString id = app.dcopClient()->registerAs("unique-kviewshell");
+ TQCString id = app.dcopClient()->registerAs("unique-kviewshell");
if (id.isNull())
kdError(4300) << "There was an error using dcopClient()->registerAs()." << endl;
QCStringList apps = app.dcopClient()->registeredApplications();
@@ -120,22 +120,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(4300) << "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)", url.ref()) == true)
+ if (app.dcopClient()->send( *it, "kmultipage", "jumpToReference(TQString)", url.ref()) == true)
{
app.dcopClient()->detach();
return 0;
@@ -163,7 +163,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);