Changeset View
Changeset View
Standalone View
Standalone View
src/apps/marble-qt/qtmain.cpp
Context not available. | |||||
158 | qWarning() << " --runtimeTrace.............. Show the time spent and other debug info of each layer"; | 158 | qWarning() << " --runtimeTrace.............. Show the time spent and other debug info of each layer"; | ||
---|---|---|---|---|---|
159 | qWarning() << " --tile-id................... Write the identifier of texture tiles on top of them"; | 159 | qWarning() << " --tile-id................... Write the identifier of texture tiles on top of them"; | ||
160 | qWarning() << " --timedemo ................. Measure the paint performance while moving the map and quit"; | 160 | qWarning() << " --timedemo ................. Measure the paint performance while moving the map and quit"; | ||
161 | qWarning() << " --debug-polygons .............Display the polygon nodes and their index for debugging"; | 161 | qWarning() << " --debug-polygons ........... Display the polygon nodes and their index for debugging"; | ||
162 | qWarning() << " --debug-levels ............. Display OSM placemarks according to the level selected"; | ||||
162 | qWarning(); | 163 | qWarning(); | ||
163 | qWarning() << "profile options (note that marble should automatically detect which profile to use. Override that with the options below):"; | 164 | qWarning() << "profile options (note that marble should automatically detect which profile to use. Override that with the options below):"; | ||
164 | qWarning() << " --highresolution ........... Enforce the profile for devices with high resolution (e.g. desktop computers)"; | 165 | qWarning() << " --highresolution ........... Enforce the profile for devices with high resolution (e.g. desktop computers)"; | ||
Context not available. | |||||
278 | marbleTest.timeDemo(); | 279 | marbleTest.timeDemo(); | ||
279 | return 0; | 280 | return 0; | ||
280 | } | 281 | } | ||
281 | else if (arg == QLatin1String("--fps")) { | 282 | | ||
283 | if (arg == QLatin1String("--fps")) { | ||||
282 | window->marbleControl()->marbleWidget()->setShowFrameRate( true ); | 284 | window->marbleControl()->marbleWidget()->setShowFrameRate( true ); | ||
283 | } | 285 | } | ||
284 | else if (arg == QLatin1String("--tile-id")) { | 286 | else if (arg == QLatin1String("--tile-id")) { | ||
Context not available. | |||||
290 | else if (arg == QLatin1String("--debug-polygons")) { | 292 | else if (arg == QLatin1String("--debug-polygons")) { | ||
291 | window->marbleControl()->marbleWidget()->setShowDebugPolygons( true ); | 293 | window->marbleControl()->marbleWidget()->setShowDebugPolygons( true ); | ||
292 | } | 294 | } | ||
293 | else if ( i != dataPathIndex && QFile::exists( arg ) ) | 295 | else if ( i != dataPathIndex && QFile::exists( arg ) ) { | ||
294 | window->addGeoDataFile( arg ); | 296 | window->addGeoDataFile(arg); | ||
297 | } | ||||
298 | else if (arg == QLatin1String("--debug-levels")) { | ||||
299 | window->marbleWidget()->setDebugLevelTags(true); | ||||
300 | } | ||||
295 | } | 301 | } | ||
296 | 302 | | |||
297 | auto const marbleWidget = window->marbleControl()->marbleWidget(); | 303 | auto const marbleWidget = window->marbleControl()->marbleWidget(); | ||
298 | bool const debugModeEnabled = marbleWidget->showRuntimeTrace() || marbleWidget->showDebugPolygons() || MarbleDebug::isEnabled(); | 304 | bool const debugModeEnabled = marbleWidget->showRuntimeTrace() || marbleWidget->showDebugPolygons() || | ||
305 | marbleWidget->debugLevelTags() || MarbleDebug::isEnabled(); | ||||
299 | marbleWidget->inputHandler()->setDebugModeEnabled(debugModeEnabled); | 306 | marbleWidget->inputHandler()->setDebugModeEnabled(debugModeEnabled); | ||
300 | 307 | | |||
301 | return app.exec(); | 308 | return app.exec(); | ||
Context not available. |