mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Make this work!
This commit is contained in:
parent
8e5c94abb0
commit
97bd0d5413
2 changed files with 7 additions and 7 deletions
|
@ -116,27 +116,27 @@ Flickable {
|
|||
SimplifiedControls.RadioButton {
|
||||
id: performanceLow
|
||||
text: "Low"
|
||||
checked: Performance.getPerformancePreset() === PerformacePreset.LOW
|
||||
checked: Performance.getPerformancePreset() === PerformanceEnums.LOW
|
||||
onClicked: {
|
||||
Performance.setPerformancePreset(PerformacePreset.LOW);
|
||||
Performance.setPerformancePreset(PerformanceEnums.LOW);
|
||||
}
|
||||
}
|
||||
|
||||
SimplifiedControls.RadioButton {
|
||||
id: performanceMedium
|
||||
text: "Medium"
|
||||
checked: Performance.getPerformancePreset() === PerformacePreset.MID
|
||||
checked: Performance.getPerformancePreset() === PerformanceEnums.MID
|
||||
onClicked: {
|
||||
Performance.setPerformancePreset(PerformacePreset.MID);
|
||||
Performance.setPerformancePreset(PerformanceEnums.MID);
|
||||
}
|
||||
}
|
||||
|
||||
SimplifiedControls.RadioButton {
|
||||
id: performanceHigh
|
||||
text: "High"
|
||||
checked: Performance.getPerformancePreset() === PerformacePreset.HIGH
|
||||
checked: Performance.getPerformancePreset() === PerformanceEnums.HIGH
|
||||
onClicked: {
|
||||
Performance.setPerformancePreset(PerformacePreset.HIGH);
|
||||
Performance.setPerformancePreset(PerformanceEnums.HIGH);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ std::once_flag PerformanceScriptingInterface::registry_flag;
|
|||
|
||||
PerformanceScriptingInterface::PerformanceScriptingInterface() {
|
||||
std::call_once(registry_flag, [] {
|
||||
qmlRegisterType<PerformanceScriptingInterface>("PerformanceEnums", 1, 0, "RefreshRate");
|
||||
qmlRegisterType<PerformanceScriptingInterface>("PerformanceEnums", 1, 0, "PerformanceEnums");
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue