/usr/share/messaging-app/MessagingBottomEdge.qml is in messaging-app 0.1+16.04.20160323-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 | import QtQuick 2.0
import Ubuntu.Components 1.3
BottomEdge {
id: bottomEdge
function commitWithProperties(properties) {
_realPage.destroy()
_realPage = messagesComponent.createObject(null, properties)
commit()
}
property bool showingConversation: _realPage && _realPage.state !== "newMessage"
property var _realPage: null
height: parent ? parent.height : 0
hint.text: i18n.tr("+")
contentComponent: Item {
id: pageContent
implicitWidth: bottomEdge.width
implicitHeight: bottomEdge.height
children: bottomEdge._realPage
}
Component.onCompleted: {
mainView.bottomEdge = bottomEdge
_realPage = messagesComponent.createObject(null)
}
Component.onDestruction: {
_realPage.destroy()
}
onCollapseCompleted: {
_realPage.destroy()
_realPage = messagesComponent.createObject(null)
}
Component {
id: messagesComponent
Messages {
anchors.fill: parent
onCancel: bottomEdge.collapse()
basePage: bottomEdge.parent
startedFromBottomEdge: true
}
}
}
|