@@ -51,21 +51,16 @@ QString QgsApplication::mThemePath;
5151QgsApplication::QgsApplication (int & argc, char ** argv, bool GUIenabled)
5252: QApplication(argc, argv, GUIenabled)
5353{
54- QgsDebugMsg (" \n **********************************" );
55- QgsDebugMsg (" \n Initialising QgsApplication..." );
5654#if defined(Q_WS_MACX) || defined(Q_WS_WIN32) || defined(WIN32)
5755 setPrefixPath (applicationDirPath (), true );
5856#else
5957 QDir myDir (applicationDirPath ());
6058 myDir.cdUp ();
6159 QString myPrefix = myDir.absolutePath ();
62- QgsDebugMsg (" Prefix: " + myPrefix.toLocal8Bit ());
6360 setPrefixPath (myPrefix, true );
6461#endif
65- QgsDebugMsg (" \n Plugin Path:" + mPluginPath );
66- QgsDebugMsg (" \n PkgData Path:" + mPkgDataPath );
67- QgsDebugMsg (" \n Theme Path:" + mThemePath );
68- QgsDebugMsg (" \n **********************************\n " );
62+ // for debuggin
63+ showSettings ();
6964}
7065
7166QgsApplication::~QgsApplication ()
@@ -84,7 +79,6 @@ void QgsApplication::setPrefixPath(const QString thePrefixPath, bool useDefaultP
8479void QgsApplication::setPluginPath (const QString thePluginPath)
8580{
8681 mPluginPath = thePluginPath;
87- QgsDebugMsg (" \n\n\n\n\n +++++++++++++++++++++++\n plugin path changed\n " + mPluginPath + " \n +++++++++++++++++ \n\n\n\n " );
8882}
8983
9084void QgsApplication::setPkgDataPath (const QString thePkgDataPath)
@@ -248,6 +242,17 @@ void QgsApplication::exitQgis()
248242 delete QgsProviderRegistry::instance ();
249243}
250244
245+ void QgsApplication::showSettings ()
246+ {
247+ qDebug (" \n **********************************" );
248+ qDebug (" QgsApplication state:" );
249+ qDebug (" Prefix :" + mPrefixPath .toLocal8Bit ());
250+ qDebug (" Plugin Path :" + mPluginPath .toLocal8Bit ());
251+ qDebug (" PkgData Path :" + mPkgDataPath .toLocal8Bit ());
252+ qDebug (" Theme Path :" + mThemePath .toLocal8Bit ());
253+ qDebug (" **********************************\n " );
254+ }
255+
251256QString QgsApplication::reportStyleSheet ()
252257{
253258 QString myStyle;
@@ -295,3 +300,5 @@ QString QgsApplication::reportStyleSheet()
295300 " }" ;
296301 return myStyle;
297302}
303+
304+
0 commit comments