diff options
Diffstat (limited to 'examples/bluetooth/heartrate_game/qml/BluetoothAlarmDialog.qml')
-rw-r--r-- | examples/bluetooth/heartrate_game/qml/BluetoothAlarmDialog.qml | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/examples/bluetooth/heartrate_game/qml/BluetoothAlarmDialog.qml b/examples/bluetooth/heartrate_game/qml/BluetoothAlarmDialog.qml deleted file mode 100644 index 0be61e4f8..000000000 --- a/examples/bluetooth/heartrate_game/qml/BluetoothAlarmDialog.qml +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (C) 2022 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -import QtQuick - -Item { - id: root - anchors.fill: parent - - Rectangle { - anchors.fill: parent - color: "black" - opacity: 0.9 - } - - MouseArea { - id: eventEater - } - - Rectangle { - id: dialogFrame - - anchors.centerIn: parent - width: parent.width * 0.8 - height: parent.height * 0.6 - border.color: "#454545" - color: GameSettings.backgroundColor - radius: width * 0.05 - - Item { - id: dialogContainer - anchors.fill: parent - anchors.margins: parent.width*0.05 - - Image { - id: offOnImage - anchors.left: quitButton.left - anchors.right: quitButton.right - anchors.top: parent.top - height: GameSettings.heightForWidth(width, sourceSize) - source: "images/bt_off_to_on.png" - } - - Text { - anchors.left: parent.left - anchors.right: parent.right - anchors.top: offOnImage.bottom - anchors.bottom: quitButton.top - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - wrapMode: Text.WordWrap - font.pixelSize: GameSettings.mediumFontSize - color: GameSettings.textColor - text: qsTr("This application cannot be used without Bluetooth. Please switch Bluetooth ON to continue.") - } - - GameButton { - id: quitButton - anchors.bottom: parent.bottom - anchors.horizontalCenter: parent.horizontalCenter - width: dialogContainer.width * 0.6 - height: GameSettings.buttonHeight - onClicked: Qt.quit() - - Text { - anchors.centerIn: parent - color: GameSettings.textColor - font.pixelSize: GameSettings.bigFontSize - text: qsTr("Quit") - } - } - } - } -} |