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:
Rob Emery 2024-10-05 16:19:35 +01:00 committed by Carl Schwan
parent 5b5fac2d5d
commit cc2dc39f92
No known key found for this signature in database
GPG key ID: 02325448204E452A
3 changed files with 4 additions and 4 deletions

View file

@ -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
{

View file

@ -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:

View file

@ -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);