/usr/share/kde4/apps/activitymanager/workspace/settings/BlacklistApplicationView.qml is in libkactivities-bin 4:4.13.3-1.
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 | /* vim:set foldenable foldmethod=marker:
*
* Copyright (C) 2012 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 1.1
import org.kde.qtextracomponents 0.1
import org.kde.plasma.core 0.1 as PlasmaCore
import org.kde.plasma.components 0.1 as PlasmaComponents
Flow {
id: main
/* property declarations --------------------------{{{ */
property int minimumHeight: 100
/* }}} */
/* signal declarations ----------------------------{{{ */
/* }}} */
/* JavaScript functions ---------------------------{{{ */
/* }}} */
/* object properties ------------------------------{{{ */
spacing: 16
anchors {
fill : parent
rightMargin : 8
bottomMargin : 8
leftMargin : 8
}
height: Math.max(childrenRect.height, minimumHeight)
opacity: if (applicationModel.enabled) {1} else {.3}
Behavior on opacity { NumberAnimation { duration: 150 } }
/* }}} */
/* child objects ----------------------------------{{{ */
Repeater {
model: applicationModel
Column {
id: item
property bool blocked: model.blocked
Item {
id: mainIcon
width : 64 + 20
height : 64 + 20
QIconItem {
id: icon
icon: model.icon
anchors.fill : parent
anchors.margins : 10
opacity: if (item.blocked) {0.5} else {1.0}
Behavior on opacity { NumberAnimation { duration: 150 } }
}
QIconItem {
id: iconNo
icon: "dialog-cancel"
anchors {
right : parent.right
bottom : parent.bottom
}
width : 48
height : 48
opacity : (1 - icon.opacity) * 2
}
MouseArea {
onClicked: applicationModel.toggleApplicationBlocked(model.index)
anchors.fill: parent
}
}
Text {
elide : Text.ElideRight
width : mainIcon.width
text : model.title;
opacity : icon.opacity
anchors.margins : 10
anchors.horizontalCenter : parent.horizontalCenter
horizontalAlignment : Text.AlignHCenter
}
}
}
/* }}} */
/* states -----------------------------------------{{{ */
/* }}} */
/* transitions ------------------------------------{{{ */
/* }}} */
}
|