Fixup higher power levels not being displayed correctly

This is is a fix or 4d1c82a623, I was
coercing integer values to PowerLevel (the enum.)
This commit is contained in:
Joshua Goins
2025-02-04 15:36:21 -05:00
parent 0c7e02e7c9
commit 6b4b895102
3 changed files with 5 additions and 5 deletions

View File

@@ -41,9 +41,9 @@ public:
Q_INVOKABLE QColor getUserColor(qreal hueF);
Q_INVOKABLE QQuickItem *focusedWindowItem();
/**
* @brief Invokable version of PowerLevel::nameForLevel.
* @brief Invokable version of PowerLevel::nameForLevel which also calls PowerLevel::levelForValue.
*/
Q_INVOKABLE QString nameForLevel(PowerLevel::Level level);
Q_INVOKABLE QString nameForPowerLevelValue(int value);
private:
QmlUtils() = default;