summaryrefslogtreecommitdiff
path: root/core/tools/quicklauncher/main.cpp
authorzecke <zecke>2003-08-27 12:47:27 (UTC)
committer zecke <zecke>2003-08-27 12:47:27 (UTC)
commitea7aa8c3779be1e5aadb550559b3a463859ba104 (patch) (unidiff)
treec6d1154d284b0d79ecaf8be4985e0a50298b7fbd /core/tools/quicklauncher/main.cpp
parent81175f54968c0cd749492d3fe43b7243b71c2d5d (diff)
downloadopie-ea7aa8c3779be1e5aadb550559b3a463859ba104.zip
opie-ea7aa8c3779be1e5aadb550559b3a463859ba104.tar.gz
opie-ea7aa8c3779be1e5aadb550559b3a463859ba104.tar.bz2
Opiefy it
Diffstat (limited to 'core/tools/quicklauncher/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/tools/quicklauncher/main.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/core/tools/quicklauncher/main.cpp b/core/tools/quicklauncher/main.cpp
index e509908..7d368ab 100644
--- a/core/tools/quicklauncher/main.cpp
+++ b/core/tools/quicklauncher/main.cpp
@@ -21,22 +21,21 @@
21#include <qpainter.h> 21#include <qpainter.h>
22#include <qstrlist.h> 22#include <qstrlist.h>
23#include <qtimer.h> 23#include <qtimer.h>
24#include <qguardedptr.h> 24#include <qguardedptr.h>
25#include <qcopchannel_qws.h> 25#include <qcopchannel_qws.h>
26#define QTOPIA_INTERNAL_INITAPP 26#define QTOPIA_INTERNAL_INITAPP
27#include <qtopia/timezone.h>
28#include <qtopia/qpeapplication.h> 27#include <qtopia/qpeapplication.h>
29#include <qtopia/resource.h>
30#include <qtopia/pluginloader.h>
31#include <stdio.h> 28#include <stdio.h>
32#include <stdlib.h> 29#include <stdlib.h>
33#include <sys/types.h> 30#include <sys/types.h>
34#include <sys/stat.h> 31#include <sys/stat.h>
35#include <unistd.h> 32#include <unistd.h>
36 33
34#include "dropins.h"
35
37static QPEApplication *app = 0; 36static QPEApplication *app = 0;
38static PluginLoader *loader = 0; 37static PluginLoader *loader = 0;
39static ApplicationInterface *appIface = 0; 38static ApplicationInterface *appIface = 0;
40static QGuardedPtr<QWidget> mainWindow; 39static QGuardedPtr<QWidget> mainWindow;
41 40
42#ifdef _OS_LINUX_ 41#ifdef _OS_LINUX_
@@ -207,17 +206,24 @@ int main( int argc, char** argv )
207 QFontMetrics fmb( f ); 206 QFontMetrics fmb( f );
208 fmb.ascent(); // causes font load. 207 fmb.ascent(); // causes font load.
209 208
210 // Each of the following force internal structures/internal 209 // Each of the following force internal structures/internal
211 // initialization to be performed. This may mean allocating 210 // initialization to be performed. This may mean allocating
212 // memory that is not needed by all applications. 211 // memory that is not needed by all applications.
212#if 0
213 TimeZone::current().isValid(); // popuplate timezone cache 213 TimeZone::current().isValid(); // popuplate timezone cache
214 TimeString::currentDateFormat(); // create internal structures 214 TimeString::currentDateFormat(); // create internal structures
215 TimeString::currentAMPM(); 215 TimeString::currentAMPM();
216#endif
216 Resource::loadIconSet("new"); // do internal init 217 Resource::loadIconSet("new"); // do internal init
217 218
219 /* make sure libopie gets lined in */
220 {
221 OWait item;
222 }
223
218 // Create a widget to force initialization of title bar images, etc. 224 // Create a widget to force initialization of title bar images, etc.
219 QObject::disconnect(app, SIGNAL(lastWindowClosed()), app, SLOT(hideOrQuit())); 225 QObject::disconnect(app, SIGNAL(lastWindowClosed()), app, SLOT(hideOrQuit()));
220 QWidget *w = new QWidget(0,0,Qt::WDestructiveClose|Qt::WStyle_ContextHelp|Qt::WStyle_Tool); 226 QWidget *w = new QWidget(0,0,Qt::WDestructiveClose|Qt::WStyle_ContextHelp|Qt::WStyle_Tool);
221 w->setGeometry( -100, -100, 10, 10 ); 227 w->setGeometry( -100, -100, 10, 10 );
222 w->show(); 228 w->show();
223 QTimer::singleShot( 0, w, SLOT(close()) ); 229 QTimer::singleShot( 0, w, SLOT(close()) );