From 1ddcf3566b3339bb649b07b64bd5802b735f37ba Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sun, 02 May 2004 18:03:26 +0000 Subject: #define QTOPIA_INTERNAL_INITAPP must happen before #include "dropins.h" or this won't compile --- (limited to 'core/tools') diff --git a/core/tools/quicklauncher/dropins.h b/core/tools/quicklauncher/dropins.h index 7acace9..a9664f8 100644 --- a/core/tools/quicklauncher/dropins.h +++ b/core/tools/quicklauncher/dropins.h @@ -1,14 +1,17 @@ +/* OPIE */ +#include +using namespace Opie::Ui; -#include #include #include +#include #include #include -#include - +/* QT */ #include #include +#include namespace QuickPrivate { diff --git a/core/tools/quicklauncher/main.cpp b/core/tools/quicklauncher/main.cpp index c2467fb..b1befce 100644 --- a/core/tools/quicklauncher/main.cpp +++ b/core/tools/quicklauncher/main.cpp @@ -18,10 +18,12 @@ ** **********************************************************************/ +#define QTOPIA_INTERNAL_INITAPP #include "dropins.h" /* OPIE */ #include +using namespace Opie::Core; /* QT */ #include @@ -29,7 +31,6 @@ #include #include #include -#define QTOPIA_INTERNAL_INITAPP #ifdef private # undef private @@ -61,7 +62,6 @@ extern char **environ; #define SPT_BUFSIZE 2048 #endif #include -using namespace Opie::Ui; void setproctitle (const char *fmt,...) { int i; char buf[SPT_BUFSIZE]; @@ -133,7 +133,7 @@ private slots: QDataStream stream( data, IO_ReadOnly ); QStrList argList; stream >> argList; - odebug << "QuickLauncher execute: " << argList.at(0) << "" << oendl; + odebug << "QuickLauncher execute: " << argList.at(0) << oendl; doQuickLaunch( argList ); delete this; } else if ( msg == "execute(QString)" ) { @@ -141,7 +141,7 @@ private slots: QDataStream stream( data, IO_ReadOnly ); QString arg; stream >> arg; - odebug << "QuickLauncher execute: " << arg << "" << oendl; + odebug << "QuickLauncher execute: " << arg << oendl; QStrList argList; argList.append( arg.utf8() ); doQuickLaunch( argList ); @@ -187,7 +187,7 @@ int main( int argc, char** argv ) if ( sep > 0 ) arg0 = arg0.mid( sep+1 ); if ( arg0 != "quicklauncher" ) { - odebug << "QuickLauncher invoked as: " << arg0.data() << "" << oendl; + odebug << "QuickLauncher invoked as: " << arg0.data() << oendl; QuickLauncher::exec( argc, argv ); } else { #ifdef _OS_LINUX_ -- cgit v0.9.0.2