|
|
|
@ -679,6 +679,33 @@ KApplication::KApplication( int& argc, char** argv, const TQCString& rAppName,
|
|
|
|
|
d->m_KAppDCOPInterface = new KAppDCOPInterface(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
KApplication::KApplication( bool allowStyles, bool GUIenabled, bool SMenabled ) :
|
|
|
|
|
// TQApplication( *KCmdLineArgs::qt_argc(), *KCmdLineArgs::qt_argv(), TRUE ), // Qt4 requires that there always be a GUI
|
|
|
|
|
TQApplication( *KCmdLineArgs::qt_argc(), *KCmdLineArgs::qt_argv(), GUIenabled, SMenabled ), // We need to be able to run command line apps
|
|
|
|
|
KInstance( KCmdLineArgs::about),
|
|
|
|
|
#ifdef Q_WS_X11
|
|
|
|
|
display(0L),
|
|
|
|
|
argb_visual(false),
|
|
|
|
|
#endif
|
|
|
|
|
d (new KApplicationPrivate)
|
|
|
|
|
{
|
|
|
|
|
aIconPixmap.pm.icon = 0L;
|
|
|
|
|
aIconPixmap.pm.miniIcon = 0L;
|
|
|
|
|
read_app_startup_id();
|
|
|
|
|
if (!GUIenabled)
|
|
|
|
|
allowStyles = false;
|
|
|
|
|
useStyles = allowStyles;
|
|
|
|
|
setName( instanceName() );
|
|
|
|
|
|
|
|
|
|
installSigpipeHandler();
|
|
|
|
|
parseCommandLine( );
|
|
|
|
|
init(GUIenabled);
|
|
|
|
|
d->m_KAppDCOPInterface = new KAppDCOPInterface(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// FIXME
|
|
|
|
|
// FOR BINARY COMPATIBILITY ONLY
|
|
|
|
|
// REMOVE WHEN PRACTICAL!
|
|
|
|
|
KApplication::KApplication( bool allowStyles, bool GUIenabled ) :
|
|
|
|
|
// TQApplication( *KCmdLineArgs::qt_argc(), *KCmdLineArgs::qt_argv(), TRUE ), // Qt4 requires that there always be a GUI
|
|
|
|
|
TQApplication( *KCmdLineArgs::qt_argc(), *KCmdLineArgs::qt_argv(), GUIenabled ), // We need to be able to run command line apps
|
|
|
|
|