History

Cleaning up the interface for the Performance PRESET and the associated debug ui

Sam Gateau committed 7 years ago

Commit b88deb51 parent a212a8a13 files · +225 −141Browse files

Showing the changes to interface/src/scripting/PerformanceScriptingInterface.cpp (1 of 13 files). Show all

Unified · Split

interface/src/scripting/PerformanceScriptingInterface.cpp+7−7
@@ -19,17 +19,17 @@ PerformanceScriptingInterface::PerformanceScriptingInterface() { · 18 unmodified lines
19 });19 });
20}20}
21 21
22void PerformanceScriptingInterface::setPerformanceProfile(PerformanceProfile performanceProfile) {22void PerformanceScriptingInterface::setPerformancePreset(PerformancePreset performancePreset) {
23 qApp->getPerformanceManager().setPerformanceProfile((PerformanceManager::PerformanceProfile)performanceProfile);23 qApp->getPerformanceManager().setPerformancePreset((PerformanceManager::PerformancePreset)performancePreset);
24}24}
25 25
26PerformanceScriptingInterface::PerformanceProfile PerformanceScriptingInterface::getPerformanceProfile() const {26PerformanceScriptingInterface::PerformancePreset PerformanceScriptingInterface::getPerformancePreset() const {
27 return (PerformanceScriptingInterface::PerformanceProfile)qApp->getPerformanceManager().getPerformanceProfile();27 return (PerformanceScriptingInterface::PerformancePreset)qApp->getPerformanceManager().getPerformancePreset();
28}28}
29 29
30QStringList PerformanceScriptingInterface::getPerformanceProfileNames() const {30QStringList PerformanceScriptingInterface::getPerformancePresetNames() const {
31 static const QStringList performanceProfileNames = { "Low", "Mid", "High" };31 static const QStringList performancePresetNames = { "Low", "Mid", "High" };
32 return performanceProfileNames;32 return performancePresetNames;
33}33}
34 34
35void PerformanceScriptingInterface::setRefreshRateProfile(RefreshRateProfile refreshRateProfile) {35void PerformanceScriptingInterface::setRefreshRateProfile(RefreshRateProfile refreshRateProfile) {