Commit c4e163c4 authored by David Faure's avatar David Faure

Remove last traces of models that don't exist anymore

voiceAppListModel and gamesAppListModel were removed some time ago.

Fixes:
LauncherMenu.qml:60: TypeError: Cannot call method 'loadApplications' of undefined
parent 5ecd4701
......@@ -50,8 +50,6 @@ FocusScope {
Component.onCompleted: {
root.forceActiveFocus();
plasmoid.nativeInterface.applicationListModel.loadApplications();
plasmoid.nativeInterface.voiceAppListModel.loadApplications();
plasmoid.nativeInterface.gamesAppListModel.loadApplications();
root.activateAppView();
}
......@@ -61,7 +59,7 @@ FocusScope {
root.activateAppView()
}
}
Connections {
target: root
onActivateTopNavBar: {
......
......@@ -108,7 +108,7 @@ void ApplicationListModel::loadApplications()
while (!subGroupList.isEmpty()) {
KSycocaEntry::Ptr groupEntry = subGroupList.first();
subGroupList.pop_front();
if (groupEntry->isType(KST_KServiceGroup)) {
KServiceGroup::Ptr serviceGroup(static_cast<KServiceGroup* >(groupEntry.data()));
......@@ -125,13 +125,13 @@ void ApplicationListModel::loadApplications()
} else if (entry->property("Exec").isValid()) {
qDebug() << entry->property("Categories");
KService::Ptr service(static_cast<KService* >(entry.data()));
qDebug() << " desktopEntryName: " << service->desktopEntryName();
qDebug() << " desktopEntryName: " << service->desktopEntryName();
//else if (entry->property("Exec").isValid()) {
// KService::Ptr service(static_cast<KService* >(entry.data()));
// qDebug() << " desktopEntryName: " << service->desktopEntryName();
if (service->isApplication() &&
!blacklist.contains(service->desktopEntryName()) &&
service->showOnCurrentPlatform() &&
......@@ -301,4 +301,4 @@ void ApplicationListModel::setAppOrder(const QStringList &order)
++i;
}
emit appOrderChanged();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment