Commit 935d38a0 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

PK: Improve integration of the source actions

parent 2987755d
......@@ -64,6 +64,10 @@ DiscoverPage {
parent: sourceTitleLayout
Layout.column: 1
text: modelData.text app.iconName(modelData.icon)
ToolTip.visible: hovered
ToolTip.text: modelData.toolTip
onClicked: modelData.trigger()
onObjectRemoved: {
......@@ -72,6 +72,7 @@ static QAction* createActionForService(const QString &servicePath, QObject* pare
KDesktopFile parser(servicePath);
QObject::connect(action, &QAction::triggered, action, [servicePath](){
bool b = QProcess::startDetached(QStringLiteral(CMAKE_INSTALL_FULL_LIBEXECDIR_KF5 "/discover/runservice"), {servicePath});
if (!b)
Supports Markdown
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