Skip to content

Commit

Permalink
Changed the formatting of showSettings output:
Browse files Browse the repository at this point in the history
- now uses dash-bullets for each param
- spaces instead of tabs, tabs were not correctly indented in Python console
- "Application state" -> "QgsApplication state"
  • Loading branch information
velle authored and nyalldawson committed Aug 26, 2024
1 parent 26a5d44 commit 450966f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/core/qgsapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1612,25 +1612,25 @@ void QgsApplication::exitQgis()
QString QgsApplication::showSettings()
{
QString myEnvironmentVar( getenv( "QGIS_PREFIX_PATH" ) );
QString myState = tr( "Application state:\n"
"QGIS_PREFIX_PATH env var:\t\t%1\n"
"Prefix:\t\t%2\n"
"Plugin Path:\t\t%3\n"
"Package Data Path:\t%4\n"
"Active Theme Name:\t%5\n"
"Active Theme Path:\t%6\n"
"Default Theme Path:\t%7\n"
"SVG Search Paths:\t%8\n"
"User DB Path:\t%9\n"
"Auth DB Path:\t%10\n" )
QString myState = tr( "QgsApplication state:\n"
" - QGIS_PREFIX_PATH env var: %1\n"
" - Prefix: %2\n"
" - Plugin Path: %3\n"
" - Package Data Path: %4\n"
" - Active Theme Name: %5\n"
" - Active Theme Path: %6\n"
" - Default Theme Path: %7\n"
" - SVG Search Paths: %8\n"
" - User DB Path: %9\n"
" - Auth DB Path: %10\n" )
.arg( myEnvironmentVar,
prefixPath(),
pluginPath(),
pkgDataPath(),
themeName(),
activeThemePath(),
defaultThemePath(),
svgPaths().join( tr( "\n\t\t", "match indentation of application state" ) ),
svgPaths().join( tr( "\n ", "match indentation of application state" ) ),
qgisMasterDatabaseFilePath() )
.arg( qgisAuthDatabaseFilePath() );
return myState;
Expand Down

0 comments on commit 450966f

Please sign in to comment.