summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/pingpong/assets/Dialog.qml
blob: 025750361af29bbc35ba18dd1dff09a5488372fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2014 BlackBerry Limited. All rights reserved.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

import QtQuick 2.0

Rectangle {
    width: parent.width/2
    height: message.implicitHeight*2
    z: 50
    border.width: 2
    border.color: "#363636"
    radius: 10

    Text {
        id: message
        horizontalAlignment: Text.AlignHCenter
        verticalAlignment: Text.AlignVCenter
        anchors.fill: parent
        wrapMode: Text.WordWrap
        elide: Text.ElideMiddle
        text: pingPong.message
        color: "#363636"
    }
}