added 'insert' button and 'show password' button for PageSetupWizardCredentials
This commit is contained in:
parent
66f9a82f31
commit
aa66133813
10 changed files with 53 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue