Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Mobile
Commits
06363095
Commit
06363095
authored
May 13, 2022
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
components/mobileshell/homescreen/applicationlistmodel.cpp
View file @
06363095
...
...
@@ -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
();
...
...
components/mobileshell/homescreen/applicationlistmodel.h
View file @
06363095
...
...
@@ -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:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment