diff options
Diffstat (limited to 'examples/bluetooth/heartrate_game/qml/GamePage.qml')
-rw-r--r-- | examples/bluetooth/heartrate_game/qml/GamePage.qml | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/examples/bluetooth/heartrate_game/qml/GamePage.qml b/examples/bluetooth/heartrate_game/qml/GamePage.qml deleted file mode 100644 index 25a5bb3d1..000000000 --- a/examples/bluetooth/heartrate_game/qml/GamePage.qml +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (C) 2022 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -import QtQuick -import "." - -Item { - anchors.fill: parent - - property string errorMessage: "" - property string infoMessage: "" - property real messageHeight: msg.height - property bool hasError: errorMessage != "" - property bool hasInfo: infoMessage != "" - - function init() - { - } - - function close() - { - app.prevPage() - } - - Rectangle { - id: msg - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - height: GameSettings.fieldHeight - color: hasError ? GameSettings.errorColor : GameSettings.infoColor - visible: hasError || hasInfo - - Text { - id: error - anchors.fill: parent - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - minimumPixelSize: 5 - font.pixelSize: GameSettings.smallFontSize - fontSizeMode: Text.Fit - color: GameSettings.textColor - text: hasError ? errorMessage : infoMessage - } - } -} |