Commit 06363095 authored by Laurent Montel's avatar Laurent Montel
Browse files

databaseChanged is deprecated => in code we export "apps" by default

=> we can port it.
now all compile fine in qt6
parent 2da23eae
Pipeline #175558 failed with stage
in 44 seconds
......@@ -37,7 +37,7 @@ constexpr int MAX_FAVOURITES = 5;
ApplicationListModel::ApplicationListModel(QObject *parent)
: QAbstractListModel(parent)
{
connect(KSycoca::self(), qOverload<const QStringList &>(&KSycoca::databaseChanged), this, &ApplicationListModel::sycocaDbChanged);
connect(KSycoca::self(), &KSycoca::databaseChanged, this, &ApplicationListModel::sycocaDbChanged);
connect(WindowUtil::instance(), &WindowUtil::windowCreated, this, &ApplicationListModel::windowCreated);
......@@ -83,12 +83,8 @@ QHash<int, QByteArray> ApplicationListModel::roleNames() const
{ApplicationUniqueIdRole, QByteArrayLiteral("applicationUniqueId")}};
}
void ApplicationListModel::sycocaDbChanged(const QStringList &changes)
void ApplicationListModel::sycocaDbChanged()
{
if (!changes.contains(QStringLiteral("apps")) && !changes.contains(QStringLiteral("xdgdata-apps"))) {
return;
}
m_applicationList.clear();
loadApplications();
......
......@@ -113,7 +113,7 @@ public:
Q_INVOKABLE void unsetMinimizedDelegate(int row, QQuickItem *delegate);
public Q_SLOTS:
void sycocaDbChanged(const QStringList &change);
void sycocaDbChanged();
void windowCreated(KWayland::Client::PlasmaWindow *window);
Q_SIGNALS:
......
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