This file is indexed.

/usr/share/kf5/kactivitymanagerd/workspace/settings/qml/activityDialog/GeneralTab.qml is in kactivities 5.18.0-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
/*   vim:set foldmethod=marker:
 *
 *   Copyright (C) 2015 Ivan Cukic <ivan.cukic(at)kde.org>
 *
 *   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.2
import QtQuick.Controls 1.0 as QtControls

import org.kde.plasma.core 2.0 as PlasmaCore

import "./components" as Local

Item {
    id: root

    function setFocus() {
        activityName.forceActiveFocus();
        console.log("GeneralTab: Set focus called");
    }

    property string activityId: ""

    property alias activityName        : activityName.text
    property alias activityDescription : activityDescription.text
    property alias activityIcon        : buttonIcon.iconName
    property alias activityWallpaper   : imageWallpaper.source

    height : content.childrenRect.height + 4 * units.smallSpacing
    width  : content.childrenRect.width + 4 * units.smallSpacing

    Column {
        id: content

        anchors {
            fill: parent
            margins: 2 * units.smallSpacing
        }

        spacing: units.smallSpacing

        QtControls.Label {
            font.bold: true
            text: i18n("Activity information")
        }

        property int labelWidth : 2 * units.largeSpacing +
                Math.max(activityName.desiredLabelWidth, activityDescription.desiredLabelWidth)

        Local.LabeledTextField {
            id: activityName
            label: i18n("Name")

            labelWidth: content.labelWidth
        }

        Local.LabeledTextField {
            id: activityDescription
            label: i18n("Description")

            labelWidth: content.labelWidth
        }

        Item {
            width: parent.width
            height: units.smallSpacing
        }

        Row {
            height  : units.iconSizes.large * 3
            width   : childrenRect.width
            spacing : units.largeSpacing

            Item {
                id: panelWallpaper

                visible: false

                height: parent.height
                width: buttonChangeWallpaper.width + imageWallpaper.width + units.smallSpacing

                QtControls.Label {
                    id: labelWallpaper
                    font.bold: true
                    text: i18n("Wallpaper")
                }

                QtControls.Button {
                    id: buttonChangeWallpaper
                    width: content.labelWidth
                    text: i18n("Change...")

                    anchors {
                        verticalCenter: imageWallpaper.verticalCenter
                    }
                }

                Image {
                    id: imageWallpaper
                    source: ""

                    width: height / 3 * 4

                    anchors {
                        top: labelWallpaper.bottom
                        bottom: parent.bottom
                        left: buttonChangeWallpaper.right

                        leftMargin: units.smallSpacing
                    }

                }
            }

            Item {
                id: panelIcon

                height : parent.height
                width  : parent.height

                QtControls.Label {
                    id: labelIcon
                    font.bold: true
                    text: i18n("Icon")
                }

                Item {
                    anchors {
                        top: labelIcon.bottom
                        bottom: parent.bottom
                        left: parent.left
                        right: parent.right
                    }

                    Local.IconChooser {
                        id: buttonIcon

                        width: height
                        height: 2 * units.iconSizes.large

                        anchors {
                            centerIn: parent
                        }
                    }
                }
            }
        }
    }
}