This file is indexed.

/usr/share/qtmir/qtmir-demo-shell/Shell.qml is in qtmir-tests 0.4.8+16.04.20160330-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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
import QtQuick 2.4
import Unity.Application 0.1

Rectangle {
    id: root

    focus: true
    Keys.onVolumeUpPressed: {
        console.log("\"Volume Up\" pressed");
    }
    Keys.onVolumeDownPressed: {
        console.log("\"Volume Down\" pressed");
    }

    property bool resizeModeStretch: true

    gradient: Gradient {
        GradientStop { position: 0.0; color: "lightsteelblue" }
        GradientStop { position: 1.0; color: "pink" }
    }

    property bool thumbFriendlyBorders: false

    MultiPointTouchArea {
        anchors.fill: parent
        mouseEnabled: false
        onPressed: {
            root.thumbFriendlyBorders = true;
        }
        onReleased: {
            root.thumbFriendlyBorders = false;
        }
    }

    Image {
        id: unityLogo
        source: "UnityLogo.png"
        fillMode: Image.PreserveAspectFit
        anchors.centerIn: parent
        width: 600
        height: 600

        RotationAnimation {
            id: logoAnimation
            target: unityLogo
            from: 0
            to: 359
            duration: 3000
            easing.type: Easing.Linear
            loops: Animation.Infinite
        }

        MultiPointTouchArea {
            anchors.fill: parent
            minimumTouchPoints:1
            maximumTouchPoints:1
            onPressed: {
                if (logoAnimation.paused) {
                    logoAnimation.resume();
                } else if (logoAnimation.running) {
                    logoAnimation.pause();
                } else {
                    logoAnimation.start();
                }
            }
        }
    }

    Item {
        id: windowContainer
        anchors.fill: root
    }

    Rectangle {
        id: quitButton
        width: 60
        height: 40
        color: "red"
        anchors { right: parent.right; bottom: parent.bottom }
        Text {
            anchors.centerIn: parent
            text: "Quit"
        }
        MouseArea {
            anchors.fill: parent
            onClicked: Qt.quit()
        }
    }

    Rectangle {
        id: resizeButton
        width: 90
        height: 40
        color: "blue"
        anchors { right: quitButton.left; bottom: parent.bottom }
        Text {
            anchors.centerIn: parent
            text: root.resizeModeStretch ? "Stretch" : "Wait Resize"
            color: "white"
        }
        MouseArea {
            anchors.fill: parent
            onClicked: { root.resizeModeStretch = !root.resizeModeStretch; }
        }
    }

    Rectangle {
        width: 40
        height: 40
        color: "green"
        anchors { right: resizeButton.left; bottom: parent.bottom }
        Text {
            anchors.centerIn: parent
            text: "⟳"
            color: "white"
            font.pixelSize: 35
        }
        MouseArea {
            anchors.fill: parent
            onClicked: { root.rotation += 180; }
        }
    }

    Component {
        id: windowStretchComponent
        Window {
            x: 50
            y: 50
            //width: 200
            //height: 200
            touchMode: root.thumbFriendlyBorders

            onCloneRequested: {
                var window = windowStretchComponent.createObject(windowContainer);
                window.cloned = true;
                window.surface = surface;
            }
        }
    }

    Component {
        id: windowWaitResizeComponent
        WindowBufferSized {
            x: 50
            y: 50
            touchMode: root.thumbFriendlyBorders

            onCloneRequested: {
                var window = windowStretchComponent.createObject(windowContainer);
                window.cloned = true;
                window.surface = surface;
            }
        }
    }

    property var windowComponent: resizeModeStretch ? windowStretchComponent : windowWaitResizeComponent

    Connections {
        target: SurfaceManager
        onSurfaceCreated: {
            print("new surface", surface.name)

            var window = windowComponent.createObject(windowContainer);
            if (!window) {
                console.warn(windowComponent.errorString());
                return;
            }

            window.surface = surface;

            openAnimation.target = window;
            openAnimation.start();
        }
    }

    NumberAnimation {
        id: openAnimation
        property: "x";
        from: root.width; to: 10;
        duration: 1200; easing.type: Easing.InOutQuad
    }
}