Make use of the proposed new KColorScheme API

Make use of new API proposed in frameworks/kcolorscheme!12
This commit is contained in:
James Graham
2024-09-01 14:17:41 +00:00
parent cbc2e65856
commit 05a2f03c18
6 changed files with 7 additions and 41 deletions

View File

@@ -44,21 +44,11 @@ public:
Q_INVOKABLE void apply(int idx);
/**
* @brief Activates the KColorScheme with the given name.
* @brief Get the row for the current color scheme.
*
* @sa KColorScheme
*/
Q_INVOKABLE void apply(const QString &name);
/**
* @brief Returns the index for the scheme with the given name.
*/
Q_INVOKABLE int indexForScheme(const QString &name) const;
/**
* @brief Returns the name for the scheme with the given index.
*/
Q_INVOKABLE QString nameForIndex(int index) const;
Q_INVOKABLE int indexForCurrentScheme();
private:
KColorSchemeManager *c;