From 49075fd69d70b7850febe2fbc11f81d2d4e62cf1 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 6 Aug 2013 09:20:52 -0500 Subject: Allow TQApplication objects to be constructed without a session manager This relates to Bug 760 --- src/kernel/qapplication.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/kernel/qapplication.h') diff --git a/src/kernel/qapplication.h b/src/kernel/qapplication.h index 0a24ade..de65e39 100644 --- a/src/kernel/qapplication.h +++ b/src/kernel/qapplication.h @@ -77,6 +77,7 @@ class Q_EXPORT QApplication : public QObject public: QApplication( int &argc, char **argv ); QApplication( int &argc, char **argv, bool GUIenabled ); + QApplication( int &argc, char **argv, bool GUIenabled, bool SMenabled ); enum Type { Tty, GuiClient, GuiServer }; QApplication( int &argc, char **argv, Type ); #if defined(Q_WS_X11) @@ -322,8 +323,8 @@ protected: bool event(QEvent *); private: - void construct( int &argc, char **argv, Type ); - void initialize( int, char ** ); + void construct( int &argc, char **argv, Type, bool enable_sm ); + void initialize( int, char **, bool enable_sm = true ); void init_precmdline(); void process_cmdline( int* argcptr, char ** argv ); bool internalNotify( QObject *, QEvent * ); -- cgit v1.2.3