OK this only works with QString and QStringList for some reason;
so I'll hack some substringing stuff together for now
This commit is contained in:
parent
5b5fac2d5d
commit
cc2dc39f92
3 changed files with 4 additions and 4 deletions
|
@ -147,7 +147,7 @@ QSet<LinkProvider *> Daemon::getLinkProviders() const
|
|||
return d->m_linkProviders;
|
||||
}
|
||||
|
||||
QVector<QStringList> Daemon::linkProviders() const
|
||||
QStringList Daemon::linkProviders() const
|
||||
{
|
||||
/*
|
||||
QString allStr = QStringLiteral("all");
|
||||
|
@ -162,7 +162,7 @@ QVector<QStringList> Daemon::linkProviders() const
|
|||
returnValue[enabledStr] += a->name();
|
||||
}
|
||||
return returnValue;*/
|
||||
return QVector<QStringList>();
|
||||
return QStringList();
|
||||
}
|
||||
QStringList Daemon::devices(bool onlyReachable, bool onlyTrusted) const
|
||||
{
|
||||
|
|
|
@ -64,7 +64,7 @@ public Q_SLOTS:
|
|||
Q_SCRIPTABLE QMap<QString, QString> deviceNames(bool onlyReachable = false, bool onlyPaired = false) const;
|
||||
|
||||
Q_SCRIPTABLE QString deviceIdByName(const QString &name) const;
|
||||
Q_SCRIPTABLE QVector<QStringList> 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:
|
||||
|
|
|
@ -111,7 +111,7 @@ KdeConnectKcm::KdeConnectKcm(QObject *parent, const KPluginMetaData &md, const Q
|
|||
*/
|
||||
setWhenAvailable(
|
||||
daemon->linkProviders(),
|
||||
[this](bool error, const QVector<QStringList> 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);
|
||||
|
|
Loading…
Reference in a new issue