1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-06 19:12:30 +01:00
ScreenPlay/ScreenPlayUtil/qml/TextField.qml
Elias Steurer 59a6523f28 Update ScreenPlay App type to be a QML_SINGLETON
This should in theory fix QtCreator autocompletion,
but https://bugreports.qt.io/browse/QTCREATORBUG-30197
must be fixed first
2024-01-12 16:10:34 +01:00

31 lines
647 B
QML

import QtQuick
import QtQuick.Window
import QtQuick.Controls.Material
import QtQuick.Controls
import QtQuick.Layouts
import ScreenPlayApp
ColumnLayout {
id: root
implicitHeight: 70
implicitWidth: 150
property alias text: textField.text
property alias placeholderText: textField.placeholderText
property bool required: false
TextField {
id: textField
Layout.fillWidth: true
}
Text {
id: requiredText
text: root.required ? qsTr("*Required") : ""
font.family: App.settings.font
color: Material.secondaryTextColor
Layout.alignment: Qt.AlignRight
}
}