9 property bool startup: true
10 readonly property var var1: null
11 readonly property QtObject var2: null
13 allowedOrientations: Orientation.All
19 service: "org.bat.service"
21 onRegisteredChanged: {
22 if (dbusService.registered) {
23 announcedNameField.text = daemon.announcedName()
28 Component.onCompleted: {
29 console.debug("completed")
34 contentHeight: column.height
35 visible: dbusService.registered
39 && trustedDevices.count == 0
40 && nearDevices.count == 0
41 text: qsTr("Install Bat.")
48 spacing: Theme.paddingLarge
51 title: qsTr("Syntax Test")
55 id: announcedNameField
57 label: qsTr("Device Name")
58 text: dbusService.registered ? daemon.announcedName() : ""
60 onActiveFocusChanged: {
64 if (text.length === 0) {
65 text = daemon.announcedName()
67 daemon.setAnnouncedName(text)
68 placeholderText = text
72 EnterKey.onClicked: announcedNameField.focus = false
73 EnterKey.iconSource: "image://theme/icon-m-enter-close"
83 property bool showStatus: deviceStatusLabel.text.length
86 height: Theme.itemSizeMedium
92 x: Theme.horizontalPageMargin
93 anchors.verticalCenter: parent.verticalCenter
94 sourceSize.width: Theme.iconSizeMedium
95 sourceSize.height: Theme.iconSizeMedium
102 leftMargin: Theme.paddingLarge
104 rightMargin: Theme.horizontalPageMargin
106 y: listItem.contentHeight / 2 - implicitHeight / 2
107 - showStatus * (deviceStatusLabel.implicitHeight / 2)
110 color: listItem.highlighted
111 ? Theme.highlightColor
113 truncationMode: TruncationMode.Fade
114 textFormat: Text.PlainText
116 Behavior on y { NumberAnimation {} }
120 id: deviceStatusLabel
122 left: deviceNameLabel.left
123 top: deviceNameLabel.bottom
125 rightMargin: Theme.horizontalPageMargin
128 text: (trusted && reachable)
130 : (hasPairingRequests || waitsForPairing
131 ? qsTr("Pending pairing request ...") : "")
132 color: listItem.highlighted
133 ? Theme.secondaryHighlightColor
134 : Theme.secondaryColor
135 truncationMode: TruncationMode.Fade
136 font.pixelSize: Theme.fontSizeExtraSmall
137 opacity: showStatus ? 1.0 : 0.0
139 textFormat: Text.PlainText
141 Behavior on opacity { FadeAnimation {} }
146 Qt.resolvedUrl("DevicePage.qml"),
159 itemHeight: Theme.itemSizeMedium
162 model: trustedDevicesModel
163 delegate: deviceDelegate
164 visible: devicesView.count > 0
170// text: qsTr("About ...")
171// onClicked: pageStack.push(Qt.resolvedUrl("AboutPage.qml"))
175 text: qsTr("Settings ...")
176 onClicked: pageStack.push(Qt.resolvedUrl("SettingsPage.qml"))
180 VerticalScrollDecorator {}
186 onOpeningDevicePage: openDevicePage(deviceId)
193 onTriggered: startup = false
196 function openDevicePage(deviceId) {
197 if (typeof pageStack === "undefined")
200 console.log("opening device " + deviceId)
204 var devicePage = pageStack.find(function(page) {
205 return page.objectName === "DevicePage"
207 if (devicePage !== null && devicePage.deviceId === deviceId) {
208 pageStack.pop(devicePage)
213 pageStack.pop(page, PageStackAction.Immediate)
215 Qt.resolvedUrl("DevicePage.qml"),
216 { deviceId: deviceId },
217 PageStackAction.Immediate)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list