1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-06 19:12:30 +01:00
ScreenPlay/ScreenPlayUtil/qml/TextField.qml

31 lines
664 B
QML
Raw Normal View History

import QtQuick
import QtQuick.Window
import QtQuick.Controls.Material
2023-02-24 09:38:55 +01:00
import QtQuick.Controls
import QtQuick.Layouts
import ScreenPlayApp
import ScreenPlay
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
property alias text: textField.text
2023-02-24 09:38:55 +01:00
property alias placeholderText: textField.placeholderText
property bool required: false
2023-02-24 09:38:55 +01:00
TextField {
id: textField
2023-02-24 09:38:55 +01:00
Layout.fillWidth: true
}
2023-06-11 10:07:39 +02:00
Text {
id: requiredText
2023-02-24 09:38:55 +01:00
text: root.required ? qsTr("*Required") : ""
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
}
}