mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:27:48 +02: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 {
|
SimplifiedControls.RadioButton {
|
||||||
id: performanceLow
|
id: performanceLow
|
||||||
text: "Low"
|
text: "Low"
|
||||||
checked: Performance.getPerformancePreset() === PerformacePreset.LOW
|
checked: Performance.getPerformancePreset() === PerformanceEnums.LOW
|
||||||
onClicked: {
|
onClicked: {
|
||||||
Performance.setPerformancePreset(PerformacePreset.LOW);
|
Performance.setPerformancePreset(PerformanceEnums.LOW);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SimplifiedControls.RadioButton {
|
SimplifiedControls.RadioButton {
|
||||||
id: performanceMedium
|
id: performanceMedium
|
||||||
text: "Medium"
|
text: "Medium"
|
||||||
checked: Performance.getPerformancePreset() === PerformacePreset.MID
|
checked: Performance.getPerformancePreset() === PerformanceEnums.MID
|
||||||
onClicked: {
|
onClicked: {
|
||||||
Performance.setPerformancePreset(PerformacePreset.MID);
|
Performance.setPerformancePreset(PerformanceEnums.MID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SimplifiedControls.RadioButton {
|
SimplifiedControls.RadioButton {
|
||||||
id: performanceHigh
|
id: performanceHigh
|
||||||
text: "High"
|
text: "High"
|
||||||
checked: Performance.getPerformancePreset() === PerformacePreset.HIGH
|
checked: Performance.getPerformancePreset() === PerformanceEnums.HIGH
|
||||||
onClicked: {
|
onClicked: {
|
||||||
Performance.setPerformancePreset(PerformacePreset.HIGH);
|
Performance.setPerformancePreset(PerformanceEnums.HIGH);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ std::once_flag PerformanceScriptingInterface::registry_flag;
|
||||||
|
|
||||||
PerformanceScriptingInterface::PerformanceScriptingInterface() {
|
PerformanceScriptingInterface::PerformanceScriptingInterface() {
|
||||||
std::call_once(registry_flag, [] {
|
std::call_once(registry_flag, [] {
|
||||||
qmlRegisterType<PerformanceScriptingInterface>("PerformanceEnums", 1, 0, "RefreshRate");
|
qmlRegisterType<PerformanceScriptingInterface>("PerformanceEnums", 1, 0, "PerformanceEnums");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue