2022-12-28 06:36:32 +00:00
|
|
|
// Copyright (C) 2022 The Qt Company Ltd.
|
2024-02-22 14:51:16 +00:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
2022-12-28 06:36:32 +00:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls.Material
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
|
|
|
import ".."
|
|
|
|
|
|
|
|
Page {
|
|
|
|
topPadding: Constants.pageTopPadding
|
|
|
|
|
|
|
|
component TextFieldFlow: Flow {
|
|
|
|
id: layout
|
|
|
|
spacing: 40
|
|
|
|
|
|
|
|
required property int containerStyle
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
Material.containerStyle: layout.containerStyle
|
|
|
|
}
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
placeholderText: "placeholderText"
|
|
|
|
|
|
|
|
Material.containerStyle: layout.containerStyle
|
|
|
|
}
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
text: "text"
|
|
|
|
|
|
|
|
Material.containerStyle: layout.containerStyle
|
|
|
|
}
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
text: "text"
|
|
|
|
placeholderText: "placeholderText"
|
|
|
|
|
|
|
|
Material.containerStyle: layout.containerStyle
|
|
|
|
}
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
placeholderText: "Disabled placeholder"
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
Material.containerStyle: layout.containerStyle
|
|
|
|
}
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
text: "Disabled text"
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
Material.containerStyle: layout.containerStyle
|
|
|
|
}
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
text: "text"
|
|
|
|
placeholderText: "placeholderText"
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
Material.containerStyle: layout.containerStyle
|
|
|
|
}
|
2024-03-06 08:00:24 +00:00
|
|
|
|
|
|
|
TextField {
|
|
|
|
text: "0 leftPadding"
|
|
|
|
placeholderText: "placeholderText"
|
|
|
|
leftPadding: 0
|
|
|
|
|
|
|
|
Material.containerStyle: layout.containerStyle
|
|
|
|
}
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
text: "0 rightPadding"
|
|
|
|
placeholderText: "placeholderText"
|
|
|
|
rightPadding: 0
|
|
|
|
|
|
|
|
Material.containerStyle: layout.containerStyle
|
|
|
|
}
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
text: "0 topPadding"
|
|
|
|
placeholderText: "placeholderText"
|
|
|
|
topPadding: 0
|
|
|
|
|
|
|
|
Material.containerStyle: layout.containerStyle
|
|
|
|
}
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
text: "0 bottomPadding"
|
|
|
|
placeholderText: "placeholderText"
|
|
|
|
bottomPadding: 0
|
|
|
|
|
|
|
|
Material.containerStyle: layout.containerStyle
|
|
|
|
}
|
2022-12-28 06:36:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
width: parent.width
|
|
|
|
|
|
|
|
Label {
|
|
|
|
text: "Filled"
|
|
|
|
}
|
|
|
|
TextFieldFlow {
|
|
|
|
containerStyle: Material.Filled
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.bottomMargin: 40
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
text: "Outlined"
|
|
|
|
}
|
|
|
|
TextFieldFlow {
|
|
|
|
containerStyle: Material.Outlined
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|