diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
commit | fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch) | |
tree | 6b8614802f0d01b353bc9ba78aff2090846c198e /kmymoney2/main.cpp | |
parent | dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff) | |
download | kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.tar.gz kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.zip |
TQt4 port kmymoney
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmymoney2/main.cpp')
-rw-r--r-- | kmymoney2/main.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kmymoney2/main.cpp b/kmymoney2/main.cpp index 008210d..79d731c 100644 --- a/kmymoney2/main.cpp +++ b/kmymoney2/main.cpp @@ -23,10 +23,10 @@ // ---------------------------------------------------------------------------- // QT Includes -#include <qwidgetlist.h> -#include <qdatetime.h> -#include <qstringlist.h> -#include <qeventloop.h> +#include <tqwidgetlist.h> +#include <tqdatetime.h> +#include <tqstringlist.h> +#include <tqeventloop.h> // ---------------------------------------------------------------------------- // KDE Includes @@ -67,7 +67,7 @@ static KCmdLineOptions options[] = KCmdLineLastOption }; -QTime timer; +TQTime timer; bool timersOn = false; KMyMoney2App* kmymoney2; @@ -86,7 +86,7 @@ int main(int argc, char *argv[]) { timer.start(); - QString feature; + TQString feature; #ifdef _CHECK_MEMORY feature += "\t- " I18N_NOOP("Memory leakage detection") "\n"; @@ -152,7 +152,7 @@ int main(int argc, char *argv[]) MyMoneyMoney::setNegativePrefixCurrencySymbol(KGlobal::locale()->negativePrefixCurrencySymbol()); MyMoneyMoney::setPositivePrefixCurrencySymbol(KGlobal::locale()->positivePrefixCurrencySymbol()); - QCString language = args->getOption("lang"); + TQCString language = args->getOption("lang"); if(!language.isEmpty()) { if(!KGlobal::locale()->setLanguage(language)) { qWarning("Unable to select language '%s'. This has one of two reasons:\n\ta) the standard KDE message catalogue is not installed\n\tb) the KMyMoney message catalogue is not installed", language.data()); @@ -176,7 +176,7 @@ int main(int argc, char *argv[]) // Before we delete the application, we make sure that we destroy all // widgets by running the event loop for some time to catch all those // widgets that are requested to be destroyed using the deleteLater() method. - QApplication::eventLoop()->processEvents(QEventLoop::ExcludeUserInput, 10); + TQApplication::eventLoop()->processEvents(TQEventLoop::ExcludeUserInput, 10); delete kmymoney2; delete splash; @@ -204,20 +204,20 @@ int main(int argc, char *argv[]) if ( kmymoney2->isImportableFile( url.path() ) ) { // if there are multiple instances, we'll send this to the first one - QCString primary = instances[0]; + TQCString primary = instances[0]; // send a message to the primary client to import this file - QByteArray data; - QDataStream arg(data, IO_WriteOnly); + TQByteArray data; + TQDataStream arg(data, IO_WriteOnly); arg << url.path(); arg << kapp->startupId(); - if (!client->send(primary, "kmymoney2app", "webConnect(QString,QCString)",data)) + if (!client->send(primary, "kmymoney2app", "webConnect(TQString,TQCString)",data)) qDebug("Unable to launch WebConnect via DCOP."); // Before we delete the application, we make sure that we destroy all // widgets by running the event loop for some time to catch all those // widgets that are requested to be destroyed using the deleteLater() method. - QApplication::eventLoop()->processEvents(QEventLoop::ExcludeUserInput, 10); + TQApplication::eventLoop()->processEvents(TQEventLoop::ExcludeUserInput, 10); delete kmymoney2; delete splash; @@ -242,9 +242,9 @@ int main(int argc, char *argv[]) delete splash; // force complete paint of widgets - qApp->processEvents(); + tqApp->processEvents(); - QString importfile; + TQString importfile; KURL url; // make sure, we take the file provided on the command // line before we go and open the last one used @@ -287,7 +287,7 @@ int main(int argc, char *argv[]) } while(0); } catch(MyMoneyException *e) { KMessageBox::detailedError(0, i18n("Uncaught error. Please report the details to the developers"), - QString("%1 in file %2 line %3").arg(e->what()).arg(e->file()).arg(e->line())); + TQString("%1 in file %2 line %3").tqarg(e->what()).tqarg(e->file()).tqarg(e->line())); throw e; } |