2022-04-23 14:32:36 +02:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Window
|
|
|
|
import QtQuick.Controls.Material
|
2023-02-24 09:38:55 +01:00
|
|
|
import QtQuick.Controls
|
2022-04-23 14:32:36 +02:00
|
|
|
import QtQuick.Layouts
|
2022-05-05 13:02:54 +02:00
|
|
|
import ScreenPlayApp
|
|
|
|
import ScreenPlay
|
2022-04-23 14:32:36 +02:00
|
|
|
|
2023-02-24 09:38:55 +01:00
|
|
|
ColumnLayout {
|
2023-06-11 10:07:39 +02:00
|
|
|
id: root
|
|
|
|
|
2023-02-24 09:38:55 +01:00
|
|
|
implicitHeight: 70
|
|
|
|
implicitWidth: 150
|
2022-04-23 14:32:36 +02:00
|
|
|
property alias text: textField.text
|
2023-02-24 09:38:55 +01:00
|
|
|
property alias placeholderText: textField.placeholderText
|
|
|
|
property bool required: false
|
2022-04-23 14:32:36 +02:00
|
|
|
|
2023-02-24 09:38:55 +01:00
|
|
|
TextField {
|
2022-04-23 14:32:36 +02:00
|
|
|
id: textField
|
2023-02-24 09:38:55 +01:00
|
|
|
Layout.fillWidth: true
|
2022-04-23 14:32:36 +02:00
|
|
|
}
|
2023-06-11 10:07:39 +02:00
|
|
|
|
2022-04-23 14:32:36 +02:00
|
|
|
Text {
|
|
|
|
id: requiredText
|
2023-02-24 09:38:55 +01:00
|
|
|
text: root.required ? qsTr("*Required") : ""
|
2022-04-30 12:07:54 +02:00
|
|
|
font.family: App.settings.font
|
2023-06-11 10:07:39 +02:00
|
|
|
color: Material.secondaryTextColor
|
2023-02-24 09:38:55 +01:00
|
|
|
Layout.alignment: Qt.AlignRight
|
2022-04-23 14:32:36 +02:00
|
|
|
}
|
|
|
|
}
|