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