From 322e23614c9b24d9353f013e9f539484874b2b2a Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Fri, 13 May 2022 08:35:29 +0200 Subject: [PATCH] Fix compile against qt5 --- components/mobileshell/homescreen/applicationlistmodel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/mobileshell/homescreen/applicationlistmodel.cpp b/components/mobileshell/homescreen/applicationlistmodel.cpp index 22b3db91..72289802 100644 --- a/components/mobileshell/homescreen/applicationlistmodel.cpp +++ b/components/mobileshell/homescreen/applicationlistmodel.cpp @@ -37,8 +37,11 @@ constexpr int MAX_FAVOURITES = 5; ApplicationListModel::ApplicationListModel(QObject *parent) : QAbstractListModel(parent) { +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + connect(KSycoca::self(), qOverload(&KSycoca::databaseChanged), this, &ApplicationListModel::sycocaDbChanged); +#else connect(KSycoca::self(), &KSycoca::databaseChanged, this, &ApplicationListModel::sycocaDbChanged); - +#endif connect(WindowUtil::instance(), &WindowUtil::windowCreated, this, &ApplicationListModel::windowCreated); loadSettings();