Warning, /education/marble/examples/qml/cloud-sync/InputField.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2013 Dennis Nienhüser <nienhueser@kde.org>
0004 //
0005
0006 import QtQuick 1.0
0007
0008 Rectangle {
0009 id: container
0010 width: buttonRow.width
0011 height: buttonRow.height
0012
0013 property alias label: label.text
0014 property alias text: input.text
0015 property alias echoMode: input.echoMode
0016
0017 signal accepted(string text)
0018
0019 Row {
0020 id: buttonRow
0021 spacing: 10
0022
0023 Text {
0024 id: label
0025 y: 2
0026 font.pointSize: 12
0027 }
0028
0029 Rectangle {
0030 width: Math.max(100, input.width+20)
0031 height: input.height+4
0032 radius: 3
0033 smooth: true
0034
0035 border {
0036 width: 1
0037 color: "#aaaaaa"
0038 }
0039
0040 TextInput {
0041 id: input
0042 x: 2
0043 anchors.verticalCenter: parent.verticalCenter
0044
0045 font.pointSize: 12
0046 onAccepted: container.accepted(text)
0047 }
0048 }
0049 }
0050 }