/usr/share/ubuntu/settings/system/qml-plugins/about/PageComponent.qml is in ubuntu-system-settings 0.1+14.04.20140411-0ubuntu2.
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 | /*
* This file is part of system-settings
*
* Copyright (C) 2013 Canonical Ltd.
*
* Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, 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 warranties of
* MERCHANTABILITY, SATISFACTORY QUALITY, 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, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.0
import QtSystemInfo 5.0
import SystemSettings 1.0
import Ubuntu.Components 0.1
import Ubuntu.Components.ListItems 0.1 as ListItem
import Ubuntu.SystemSettings.StorageAbout 1.0
import Ubuntu.SystemSettings.Update 1.0
ItemPage {
id: root
objectName: "aboutPage"
title: i18n.tr("About this phone")
flickable: scrollWidget
UbuntuStorageAboutPanel {
id: backendInfos
}
DeviceInfo {
id: deviceInfos
}
UpdateManager {
id: updateBackend
}
Flickable {
id: scrollWidget
anchors.fill: parent
contentHeight: contentItem.childrenRect.height
boundsBehavior: (contentHeight > root.height) ? Flickable.DragAndOvershootBounds : Flickable.StopAtBounds
/* Set the direction to workaround https://bugreports.qt-project.org/browse/QTBUG-31905
otherwise the UI might end up in a situation where scrolling doesn't work */
flickableDirection: Flickable.VerticalFlick
Column {
anchors.left: parent.left
anchors.right: parent.right
ListItem.Base {
height: ubuntuLabel.height + deviceLabel.height + units.gu(6)
Column {
anchors.left: parent.left
anchors.right: parent.right
anchors.centerIn: parent
spacing: units.gu(2)
Label {
id: ubuntuLabel
anchors.horizontalCenter: parent.horizontalCenter
text: ""
fontSize: "x-large"
}
Label {
id: deviceLabel
objectName: "deviceLabel"
anchors.horizontalCenter: parent.horizontalCenter
text: deviceInfos.manufacturer() ? deviceInfos.manufacturer() + " " + deviceInfos.model() : backendInfos.vendorString
}
}
}
ListItem.SingleValue {
id: serialItem
objectName: "serialItem"
text: i18n.tr("Serial")
value: backendInfos.serialNumber
visible: backendInfos.serialNumber
}
ListItem.SingleValue {
objectName: "imeiItem"
property string imeiNumber
imeiNumber: deviceInfos.imei(0)
text: "IMEI"
value: imeiNumber
visible: imeiNumber
}
ListItem.Standard {
objectName: "softwareItem"
text: i18n.tr("Software:")
}
ListItem.SingleValue {
objectName: "osItem"
text: i18n.tr("OS")
value: "Ubuntu " + deviceInfos.version(DeviceInfo.Os) +
(updateBackend.currentBuildNumber ? " (r%1)".arg(updateBackend.currentBuildNumber) : "")
}
ListItem.SingleValue {
objectName: "lastUpdatedItem"
text: i18n.tr("Last updated")
value: backendInfos.updateDate ? backendInfos.updateDate : i18n.tr("Never")
}
ListItem.SingleControl {
control: Button {
objectName: "updateButton"
text: i18n.tr("Check for updates")
width: parent.width - units.gu(4)
onClicked:
pageStack.push(pluginManager.getByName("system-update").pageComponent)
}
}
ListItem.Standard {
id: storageItem
objectName: "storageItem"
text: i18n.tr("Storage")
progression: true
onClicked: pageStack.push(Qt.resolvedUrl("Storage.qml"))
}
ListItem.Standard {
objectName: "legalItem"
text: i18n.tr("Legal:")
}
ListItem.Standard {
objectName: "licenseItem"
text: i18n.tr("Software licenses")
progression: true
onClicked: pageStack.push(Qt.resolvedUrl("Software.qml"))
}
ListItem.Standard {
property var regulatoryInfo:
pluginManager.getByName("regulatory-information")
text: i18n.tr("Regulatory info")
progression: true
visible: regulatoryInfo
onClicked: pageStack.push(regulatoryInfo.pageComponent)
}
}
}
}
|