added 'insert' button and 'show password' button for PageSetupWizardCredentials

This commit is contained in:
vladimir.kuznetsov 2023-07-31 14:29:49 +09:00
parent 66f9a82f31
commit aa66133813
10 changed files with 53 additions and 11 deletions

View file

@ -54,7 +54,11 @@ Button {
contentItem: Item {
anchors.fill: background
implicitWidth: content.implicitWidth
implicitHeight: content.implicitHeight
RowLayout {
id: content
anchors.centerIn: parent
Image {
@ -72,6 +76,7 @@ Button {
ButtonTextType {
color: textColor
text: root.text
visible: root.text === "" ? false : true
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter

View file

@ -14,6 +14,7 @@ Item {
property alias errorText: errorField.text
property string buttonText
property string buttonImageSource
property var clickedFunc
property alias textField: textField
@ -101,7 +102,7 @@ Item {
}
BasicButtonType {
visible: root.buttonText !== ""
visible: (root.buttonText !== "") || (root.buttonImageSource !== "")
defaultColor: "transparent"
hoveredColor: Qt.rgba(1, 1, 1, 0.08)
@ -111,8 +112,10 @@ Item {
borderWidth: 0
text: root.buttonText
imageSource: root.buttonImageSource
Layout.rightMargin: 24
Layout.preferredHeight: 32
onClicked: {
if (root.clickedFunc && typeof root.clickedFunc === "function") {