Commit b58558cc authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Add developer options for inertial rotation and batch debug rendering

parent 620499fd
......@@ -28,10 +28,12 @@ Item {
id: settings
Component.onDestruction: {
settings.setValue("Developer", "inertialGlobeRotation", marbleMaps.inertialGlobeRotation)
settings.setValue("Developer", "positionProvider", marbleMaps.currentPositionProvider)
settings.setValue("Developer", "runtimeTrace", runtimeTrace.checked ? "true" : "false")
settings.setValue("Developer", "debugPlacemarks", debugPlacemarks.checked ? "true" : "false")
settings.setValue("Developer", "debugPolygons", debugPolygons.checked ? "true" : "false")
settings.setValue("Developer", "debugBatches", debugBatches.checked ? "true" : "false")
}
}
......@@ -59,6 +61,12 @@ Item {
text: "Developer Tools"
}
CheckBox {
text: "Inertial Rotation"
checked: settings.value("Developer", "inertialGlobeRotation") === "true"
onCheckedChanged: marbleMaps.inertialGlobeRotation = checked
}
CheckBox {
text: "GPS Simulation"
checked: settings.value("Developer", "positionProvider") === "RouteSimulationPositionProviderPlugin"
......@@ -90,6 +98,13 @@ Item {
checked: settings.value("Developer", "debugPolygons") === "true"
onCheckedChanged: marbleMaps.setShowDebugPolygons(checked)
}
CheckBox {
id: debugBatches
text: "Batches"
checked: settings.value("Developer", "debugBatches") === "true"
onCheckedChanged: marbleMaps.setShowDebugBatches(checked)
}
}
}
}
......@@ -900,6 +900,12 @@ namespace Marble
update();
}
void MarbleQuickItem::setShowDebugBatches(bool showDebugBatches)
{
d->m_map.setShowDebugBatchRender(showDebugBatches);
update();
}
void MarbleQuickItem::setPlacemarkDelegate(QQmlComponent *placemarkDelegate)
{
if (d->m_placemarkDelegate == placemarkDelegate) {
......
......@@ -129,6 +129,7 @@ namespace Marble
Q_INVOKABLE void setShowRuntimeTrace(bool showRuntimeTrace);
Q_INVOKABLE void setShowDebugPolygons(bool showDebugPolygons);
Q_INVOKABLE void setShowDebugPlacemarks(bool showDebugPlacemarks);
Q_INVOKABLE void setShowDebugBatches(bool showDebugBatches);
void setPlacemarkDelegate(QQmlComponent* placemarkDelegate);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment