diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-17 08:20:48 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-17 08:20:48 +0000 |
commit | aa0726b20f398264f0a2abc60215be044b106f9c (patch) | |
tree | 070fdbc19a1106cfdd7f651a8ce76bb1b89a513d /src/application.cpp | |
parent | d3cf5b3e75aadc3b02d0b56f030d4c3f8c2c749d (diff) | |
download | basket-aa0726b20f398264f0a2abc60215be044b106f9c.tar.gz basket-aa0726b20f398264f0a2abc60215be044b106f9c.zip |
TQt4 port basket
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/basket@1232416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/application.cpp b/src/application.cpp index f15cdf4..56606e3 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -19,10 +19,10 @@ ***************************************************************************/ #include <kcmdlineargs.h> -#include <qstring.h> -#include <qfile.h> -#include <qfileinfo.h> -#include <qtimer.h> +#include <tqstring.h> +#include <tqfile.h> +#include <tqfileinfo.h> +#include <tqtimer.h> #include "application.h" #include "global.h" @@ -44,14 +44,14 @@ int Application::newInstance() // Open the basket archive or template file supplied as argument: KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); if (args && args->count() >= 1) { - QString fileName = QFile::decodeName(args->arg(args->count() - 1)); - if (QFile::exists(fileName)) { - QFileInfo fileInfo(fileName); + TQString fileName = TQFile::decodeName(args->arg(args->count() - 1)); + if (TQFile::exists(fileName)) { + TQFileInfo fileInfo(fileName); if (!fileInfo.isDir()) { // Do not mis-interpret data-folder param! // Tags are not loaded until Global::bnpView::lateInit() is called. // It is called 0ms after the application start. BNPView::s_fileToOpen = fileName; - QTimer::singleShot( 100, Global::bnpView, SLOT(delayedOpenArchive()) ); + TQTimer::singleShot( 100, Global::bnpView, TQT_SLOT(delayedOpenArchive()) ); // Global::bnpView->openArchive(fileName); args->clear(); } |