diff --git a/kcms/activities/qml/activitiesTab/ActivitiesView.qml b/kcms/activities/qml/activitiesTab/ActivitiesView.qml index 68ddb75e9..aac13a2ab 100644 --- a/kcms/activities/qml/activitiesTab/ActivitiesView.qml +++ b/kcms/activities/qml/activitiesTab/ActivitiesView.qml @@ -1,88 +1,88 @@ /* vim:set foldenable foldmethod=marker: * * Copyright (C) 2015 Ivan Cukic * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import QtQuick 2.5 import QtQuick.Controls 2.5 as QQC2 import QtQuick.Layouts 1.0 import org.kde.activities 0.1 as Activities import org.kde.activities.settings 0.1 import org.kde.kirigami 2.5 as Kirigami ColumnLayout { id: root QQC2.ScrollView { Layout.fillHeight: true Layout.fillWidth: true Component.onCompleted: background.visible = true; ListView { id: activitiesList model: Activities.ActivityModel { id: kactivities } delegate: Kirigami.SwipeListItem { hoverEnabled: true contentItem: RowLayout { id: row Kirigami.Icon { id: icon height: Kirigami.Units.iconSizes.medium width: height source: model.icon } QQC2.Label { Layout.fillWidth: true text: model.name } } actions: [ Kirigami.Action { icon.name: "configure" - tooltip: i18nc("@info:tooltip", "Configure " + model.name + " activity...") + tooltip: i18nc("@info:tooltip", "Configure %1 activity", model.name) onTriggered: ActivitySettings.configureActivity(model.id); }, Kirigami.Action { visible: ActivitySettings.newActivityAuthorized enabled: activitiesList.count > 1 icon.name: "edit-delete" - tooltip: i18nc("@info:tooltip", "Delete " + model.name + " activity") + tooltip: i18nc("@info:tooltip", "Delete %1 activity", model.name) onTriggered: ActivitySettings.deleteActivity(model.id); } ] } } } QQC2.Button { id: buttonCreateActivity visible: ActivitySettings.newActivityAuthorized text: i18nd("kcm_activities5", "Create New...") icon.name: "list-add" onClicked: ActivitySettings.newActivity(); } }