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);
break;
case PerformancePreset::UNKNOWN:
default:
// Do nothing anymore
break;
}
}

View file

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

View file

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

View file

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