mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Fix compile against qt5
This commit is contained in:
parent
0636309578
commit
322e23614c
1 changed files with 4 additions and 1 deletions
|
|
@ -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<const QStringList &>(&KSycoca::databaseChanged), this, &ApplicationListModel::sycocaDbChanged);
|
||||
#else
|
||||
connect(KSycoca::self(), &KSycoca::databaseChanged, this, &ApplicationListModel::sycocaDbChanged);
|
||||
|
||||
#endif
|
||||
connect(WindowUtil::instance(), &WindowUtil::windowCreated, this, &ApplicationListModel::windowCreated);
|
||||
|
||||
loadSettings();
|
||||
|
|
|
|||
Loading…
Reference in a new issue