adjust the preset options

This commit is contained in:
Sam Gateau 2019-05-30 17:51:21 -07:00
parent 987d5e7662
commit 916ff31cf6
4 changed files with 6 additions and 2 deletions

View file

@ -57,7 +57,9 @@ void PerformanceManager::applyPerformancePreset(PerformanceManager::PerformanceP
qApp->getRefreshRateManager().setRefreshRateProfile(RefreshRateManager::RefreshRateProfile::ECO); qApp->getRefreshRateManager().setRefreshRateProfile(RefreshRateManager::RefreshRateProfile::ECO);
break; break;
case PerformancePreset::UNKNOWN:
default: default:
// Do nothing anymore
break; break;
} }
} }

View file

@ -20,7 +20,8 @@
class PerformanceManager { class PerformanceManager {
public: public:
enum PerformancePreset { enum PerformancePreset {
LOW = 0, UNKNOWN = 0, // Matching the platform Tier profiles enumeration for coherence
LOW,
MID, MID,
HIGH, HIGH,
PROFILE_COUNT PROFILE_COUNT

View file

@ -28,7 +28,7 @@ PerformanceScriptingInterface::PerformancePreset PerformanceScriptingInterface::
} }
QStringList PerformanceScriptingInterface::getPerformancePresetNames() const { QStringList PerformanceScriptingInterface::getPerformancePresetNames() const {
static const QStringList performancePresetNames = { "Low", "Mid", "High" }; static const QStringList performancePresetNames = { "Unknown", "Low", "Mid", "High" };
return performancePresetNames; return performancePresetNames;
} }

View file

@ -27,6 +27,7 @@ public:
LOW = PerformanceManager::PerformancePreset::LOW, LOW = PerformanceManager::PerformancePreset::LOW,
MID = PerformanceManager::PerformancePreset::MID, MID = PerformanceManager::PerformancePreset::MID,
HIGH = PerformanceManager::PerformancePreset::HIGH, HIGH = PerformanceManager::PerformancePreset::HIGH,
UNKNOWN = PerformanceManager::PerformancePreset::UNKNOWN,
}; };
Q_ENUM(PerformancePreset) Q_ENUM(PerformancePreset)