Index: sources/gui/qml/pages/SettingsHome.qml =================================================================== diff -u -r08ab5b3dbe26b4c7b7bb2ac539b1cfd62a4676c7 -rfeb7724c8a7a2932650c5daa490c90923c9fbe77 --- sources/gui/qml/pages/SettingsHome.qml (.../SettingsHome.qml) (revision 08ab5b3dbe26b4c7b7bb2ac539b1cfd62a4676c7) +++ sources/gui/qml/pages/SettingsHome.qml (.../SettingsHome.qml) (revision feb7724c8a7a2932650c5daa490c90923c9fbe77) @@ -28,7 +28,6 @@ * which is the default screen in the "Settings" stack */ ScreenItem { id: _root - backgroundRect.color: Colors.backgroundMenu TouchRect { id : _clearAlarmCondition objectName: "_clearAlarmCondition" @@ -42,7 +41,7 @@ rightMargin : (Variables.headerHeight - Variables.logoHeight) / 2 } text.text: qsTr("Clear Alarm Condition") - button.onPressed: { + button.onClicked: { vAlarmStatus.doClearCondition(); } } @@ -84,14 +83,29 @@ } TitleText { id: _titleText - anchors.horizontalCenter: parent.horizontalCenter; - anchors.top: parent.top - anchors.topMargin: 150 + anchors { + horizontalCenter: parent.horizontalCenter; + top: parent.top + topMargin: 150 + } width: parent.width text: qsTr("Device Settings") } + TitleText { + anchors { + horizontalCenter: parent.horizontalCenter + top: _titleText.bottom + topMargin: 10 + } + text: qsTr("Service Mode") + color: Colors.textMain + font.italic: true + font.pixelSize: Fonts.fontPixelDialogText + visible: vServiceMode.isServiceMode + } + /* Diagnostics { id: _diagnostics @@ -111,10 +125,27 @@ } + SettingsDeviceInformation { + id: _deviceInformation + onClickedBack: _settingsStack.pop() + } + + SettingsDateTimeSet { + id: _dateTimeSet + onClickedBack: _settingsStack.pop() + } + Column { - anchors.centerIn: parent; + anchors.centerIn: parent + SettingsItem { id: _item_ + title : qsTr("Device Information") + onClicked: { + vDeviceInformation.doRequestHDDGVersions() + vDeviceInformation.doRequestServiceData() + _settingsStack.push(_deviceInformation) + } + } - // add each settings page here. SettingsItem { id: _item_bluetooth title : qsTr("Bluetooth") onClicked: _settingsStack.push(_bluetooth); @@ -127,7 +158,36 @@ vNetworkModel.doScan() } } + SettingsItem { id: _item_serviceMode + title : qsTr("Service Mode") + onClicked: { + _serviceLogin.visible = true + } + visible: !vServiceMode.isServiceMode + } + SettingsItem { id: _itemDateTimeSet + title : qsTr("Set Date and Time") + onClicked: { + vDateTime.doGetCurrentTime() + push(_dateTimeSet) + } + } } -} - + TouchRect { id: _scan + anchors { + bottom: _root.bottom + bottomMargin: Variables.settingsMargin + horizontalCenter: _root.horizontalCenter + } + visible: vServiceMode.isServiceMode + backgroundColor: Colors.backgroundButtonNormal + textColor: Colors.textMain + height: Variables.settingsButtonHeight + width: Variables.settingsButtonWidth + text.text: qsTr("Shutdown") + onClicked: { + _powerOffDialog.open() + } + } +}