diff --git a/core/daemon.cpp b/core/daemon.cpp index f53ba8bc6..f195b96c5 100644 --- a/core/daemon.cpp +++ b/core/daemon.cpp @@ -147,7 +147,7 @@ QSet Daemon::getLinkProviders() const return d->m_linkProviders; } -QVector Daemon::linkProviders() const +QStringList Daemon::linkProviders() const { /* QString allStr = QStringLiteral("all"); @@ -162,7 +162,7 @@ QVector Daemon::linkProviders() const returnValue[enabledStr] += a->name(); } return returnValue;*/ - return QVector(); + return QStringList(); } QStringList Daemon::devices(bool onlyReachable, bool onlyTrusted) const { diff --git a/core/daemon.h b/core/daemon.h index 1649ec66d..b7dfdc7b0 100644 --- a/core/daemon.h +++ b/core/daemon.h @@ -64,7 +64,7 @@ public Q_SLOTS: Q_SCRIPTABLE QMap deviceNames(bool onlyReachable = false, bool onlyPaired = false) const; Q_SCRIPTABLE QString deviceIdByName(const QString &name) const; - Q_SCRIPTABLE QVector linkProviders() const; + Q_SCRIPTABLE QStringList linkProviders() const; Q_SCRIPTABLE virtual void sendSimpleNotification(const QString &eventId, const QString &title, const QString &text, const QString &iconName) = 0; Q_SIGNALS: diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index d02021154..0a47f736f 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -111,7 +111,7 @@ KdeConnectKcm::KdeConnectKcm(QObject *parent, const KPluginMetaData &md, const Q */ setWhenAvailable( daemon->linkProviders(), - [this](bool error, const QVector linkProviders) { /* + [this](bool error, const QStringList linkProviders) { /* for (int i = 0; i < linkProviders[QStringLiteral("all")].size(); ++i) { QString linkProvider = QString(linkProviders[QStringLiteral("all")].at(i).constData()); QListWidgetItem *linkProviderItem = new QListWidgetItem(linkProvider, kcmUi.linkProviders_list);