diff --git a/containments/homescreen/contents/ui/main.qml b/containments/homescreen/contents/ui/main.qml index 5092a196..b8033b7c 100644 --- a/containments/homescreen/contents/ui/main.qml +++ b/containments/homescreen/contents/ui/main.qml @@ -88,8 +88,11 @@ Item { cellWidth: root.buttonHeight cellHeight: cellWidth - model: SatelliteComponents.ApplicationListModel { - id: appListModel + model: PlasmaCore.SortFilterModel { + sourceModel: SatelliteComponents.ApplicationListModel { + id: appListModel + } + sortRole: "ApplicationNameRole" } snapMode: GridView.SnapToRow //clip: true @@ -157,6 +160,10 @@ Item { } } } + footer: Item { + width: units. gridUnit * 4 + height: width + } } } diff --git a/qmlcomponents/CMakeLists.txt b/qmlcomponents/CMakeLists.txt index 9a7b5937..b25c4777 100644 --- a/qmlcomponents/CMakeLists.txt +++ b/qmlcomponents/CMakeLists.txt @@ -6,7 +6,14 @@ set(satellitecomponents_SRCS ) add_library(satellitecomponentsplugin SHARED ${satellitecomponents_SRCS}) -target_link_libraries(satellitecomponentsplugin Qt5::Core Qt5::Widgets Qt5::Qml Qt5::Quick KF5::Declarative KF5::I18n KF5::KIOCore KF5::KIOWidgets) +target_link_libraries(satellitecomponentsplugin + Qt5::Core + Qt5::Widgets + Qt5::Qml + Qt5::Quick + KF5::Service + KF5::Declarative + KF5::I18n) install(TARGETS satellitecomponentsplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/satellite/components) diff --git a/qmlcomponents/applicationlistmodel.cpp b/qmlcomponents/applicationlistmodel.cpp index 5f96b413..10fc4161 100644 --- a/qmlcomponents/applicationlistmodel.cpp +++ b/qmlcomponents/applicationlistmodel.cpp @@ -27,7 +27,6 @@ // KDE #include -#include #include #include #include @@ -138,9 +137,7 @@ void ApplicationListModel::runApplication(const QString &storageId) { KService::Ptr service = KService::serviceByStorageId(storageId); - //FIXME: port KRun::run to wayland QProcess::startDetached(service->exec()); - //KRun::run(*service, QList(), 0); } #include "applicationlistmodel.moc"