mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
59a6523f28
This should in theory fix QtCreator autocompletion, but https://bugreports.qt.io/browse/QTCREATORBUG-30197 must be fixed first
31 lines
647 B
QML
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
|
|
}
|
|
}
|