mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
databaseChanged is deprecated => in code we export "apps" by default
=> we can port it. now all compile fine in qt6
This commit is contained in:
parent
2da23eae0a
commit
0636309578
2 changed files with 3 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue