From b24c4d5955f355356f52bc4b48c5427a7b487031 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 10 Aug 2011 12:14:37 -0500 Subject: Add new delayed initialization constructor to QApplication --- src/kernel/qapplication.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/kernel/qapplication.h') diff --git a/src/kernel/qapplication.h b/src/kernel/qapplication.h index 39f7858..8378135 100644 --- a/src/kernel/qapplication.h +++ b/src/kernel/qapplication.h @@ -74,6 +74,7 @@ class Q_EXPORT QApplication : public QObject { Q_OBJECT public: + QApplication( bool delayed_init ); QApplication( int &argc, char **argv ); QApplication( int &argc, char **argv, bool GUIenabled ); enum Type { Tty, GuiClient, GuiServer }; @@ -85,6 +86,11 @@ public: #endif virtual ~QApplication(); +#if defined(Q_WS_X11) + void doLateInitialization( Display* dpy, HANDLE visual = 0, HANDLE cmap = 0 ); + void doLateInitialization( Display *dpy, int argc, char **argv, HANDLE visual = 0, HANDLE cmap= 0 ); +#endif + int argc() const; char **argv() const; -- cgit v1.2.1