summaryrefslogtreecommitdiffstats
path: root/src/kqrunprocess.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-29 19:00:37 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-29 19:00:37 +0000
commit25794f504692e5a36c490438814e9dfda8aaa2dd (patch)
tree8061e6d27b5bc9042afdff177872779c4e8c9015 /src/kqrunprocess.h
parent35ff2a942f63b5201c04f41c3097e61cdd7817e9 (diff)
downloadkchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.tar.gz
kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.zip
TQt4 port kchmviewer
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kchmviewer@1234150 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kqrunprocess.h')
-rw-r--r--src/kqrunprocess.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kqrunprocess.h b/src/kqrunprocess.h
index 4ac1b9a..721599f 100644
--- a/src/kqrunprocess.h
+++ b/src/kqrunprocess.h
@@ -22,14 +22,14 @@
#include <stdlib.h>
#include <unistd.h>
-static bool run_process( const QString& command, const QString& filename )
+static bool run_process( const TQString& command, const TQString& filename )
{
- QString safefilename = filename;
- QString preparedcommand = command;
+ TQString safefilename = filename;
+ TQString preparedcommand = command;
// To be safe, URL should contain no quotes, apostrofes and \0 symbols
- safefilename.remove (QRegExp ("['\"\0]"));
- preparedcommand.replace( "%s", safefilename );
+ safefilename.remove (TQRegExp ("['\"\0]"));
+ preparedcommand.tqreplace( "%s", safefilename );
// And run an external command with fork()s
switch ( fork() )
@@ -39,12 +39,12 @@ static bool run_process( const QString& command, const QString& filename )
case 0: // child
if ( fork() != 0 )
- exit(0); // exit immediately - our child is now has init as his parent
+ exit(0); // exit immediately - our child is now has init as his tqparent
system( preparedcommand.ascii() );
exit (0);
- default: // parent
+ default: // tqparent
break;
}