Verified Commit 6d47f428 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[kcms/landingpage] Use actual enum type for TelemetryMode

parent b1aa3e03
......@@ -236,7 +236,7 @@ void KCMLandingPage::programFinished(int exitCode)
const QString mode = line.left(sepIdx);
bool ok;
const int modeValue = modeEnum.keyToValue(qPrintable(mode), &ok);
const auto modeValue = static_cast<KUserFeedback::Provider::TelemetryMode>(modeEnum.keyToValue(qPrintable(mode), &ok));
if (!ok) {
qWarning() << "error:" << mode << "is not a valid mode";
continue;
......
......@@ -12,6 +12,7 @@
#include <KPackage/Package>
#include <KQuickAddons/ManagedConfigModule>
#include <KUserFeedback/Provider>
Please register or sign in to reply
#include <QJsonArray>
#include <QJsonValue>
......@@ -116,7 +117,7 @@ private:
MostUsedModel *m_mostUsedModel = nullptr;
QHash<int, QHash<QString, QJsonArray>> m_uses;
QHash<KUserFeedback::Provider::TelemetryMode, QHash<QString, QJsonArray>> m_uses;
#if HAVE_KUSERFEEDBACK
QJsonArray m_feedbackSources;
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment