Prevent saving alias taken by other account

This commit is contained in:
miruka
2020-03-13 12:10:47 -04:00
parent a0c42fe5a6
commit 298043b3cb
3 changed files with 37 additions and 7 deletions

View File

@@ -8,6 +8,7 @@ HColumnLayout {
property alias label: label
property alias errorLabel: errorLabel
property alias field: field
property alias toolTip: toolTip
@@ -51,4 +52,16 @@ HColumnLayout {
Layout.fillWidth: true
}
HLabel {
id: errorLabel
visible: Layout.maximumHeight > 0
wrapMode: Text.Wrap
color: theme.colors.errorText
Layout.maximumHeight: text ? implicitHeight : 0
Layout.fillWidth: true
Behavior on Layout.maximumHeight { HNumberAnimation {} }
}
}