diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-18 06:46:40 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-18 06:46:40 +0000 |
commit | 7c19562ad065b6729bac8eb9b40dfe0452a72272 (patch) | |
tree | 33325d1e02ecc9ca614c7209296f8f796a1c3478 /kipi-plugins/printwizard/utils.cpp | |
parent | a65baa328fac0a1ce12971fef8d998ce7bfbe237 (diff) | |
download | kipi-plugins-7c19562ad065b6729bac8eb9b40dfe0452a72272.tar.gz kipi-plugins-7c19562ad065b6729bac8eb9b40dfe0452a72272.zip |
TQt4 port kipi-plugins
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/libraries/kipi-plugins@1232561 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kipi-plugins/printwizard/utils.cpp')
-rw-r--r-- | kipi-plugins/printwizard/utils.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kipi-plugins/printwizard/utils.cpp b/kipi-plugins/printwizard/utils.cpp index cab5ccd..bff1bd7 100644 --- a/kipi-plugins/printwizard/utils.cpp +++ b/kipi-plugins/printwizard/utils.cpp @@ -23,12 +23,12 @@ extern "C" #include <stdio.h> } -// Include files for Qt +// Include files for TQt -#include <qstringlist.h> -#include <qwidget.h> -#include <qdir.h> -#include <qprocess.h> +#include <tqstringlist.h> +#include <tqwidget.h> +#include <tqdir.h> +#include <tqprocess.h> // Include files for KDE @@ -63,10 +63,10 @@ int MAX(int a, int b) // given a list of args, launch this app as a separate thread. // args[0] is the application to run. -bool launchExternalApp(QStringList &args) +bool launchExternalApp(TQStringList &args) { - QProcess process; - for(QStringList::Iterator it = args.begin(); it != args.end(); ++it) + TQProcess process; + for(TQStringList::Iterator it = args.begin(); it != args.end(); ++it) { process.addArgument(*it); } @@ -74,15 +74,15 @@ bool launchExternalApp(QStringList &args) return process.start(); } -bool checkTempPath(QWidget *parent, QString tempPath) +bool checkTempPath(TQWidget *tqparent, TQString tempPath) { // does the temp path exist? - QDir tempDir(tempPath); + TQDir tempDir(tempPath); if (!tempDir.exists()) { if (!tempDir.mkdir(tempDir.path())) { - KMessageBox::sorry(parent, + KMessageBox::sorry(tqparent, i18n("Unable to create a temporary folder; " "please make sure you have proper permissions to this folder and try again.")); return false; |