chore: fix anchor warnings for CHatColumn and KenKey

This commit is contained in:
Jonathan Rainville 2020-05-27 13:26:21 -04:00 committed by Iuri Matias
parent 5b14982393
commit d8511490ca
3 changed files with 81 additions and 85 deletions

View File

@ -207,7 +207,6 @@ StackLayout {
ListView {
id: chatLogView
anchors.fill: parent
model: chatsModel.messageList
Layout.fillWidth: true
Layout.fillHeight: true
@ -342,6 +341,6 @@ StackLayout {
/*##^##
Designer {
D{i:0;height:770;width:800}
D{i:0;formeditorColor:"#ffffff";height:770;width:800}
}
##^##*/

View File

@ -37,7 +37,7 @@ Column {
selectByMouse: true
cursorVisible: true
readOnly: true
anchors.left: tild.right
anchors.left: parent.left
anchors.leftMargin: 1
font.weight: Font.Medium
font.pixelSize: 30

View File

@ -9,22 +9,20 @@ SwipeView {
anchors.fill: parent
currentIndex: 0
signal loginDone()
signal loginDone
onCurrentItemChanged: {
currentItem.txtPassword.focus = true;
currentItem.txtPassword.focus = true
}
Item {
id: wizardStep2
property int selectedIndex: 0
ColumnLayout {
id: columnLayout
width: 620
height: 427
Text {
id: title
text: "Generated accounts"
font.pointSize: 36
anchors.top: parent.top
@ -32,10 +30,14 @@ SwipeView {
anchors.horizontalCenter: parent.horizontalCenter
}
RowLayout {
Layout.fillHeight: true
Layout.fillWidth: true
spacing: 10
Item {
anchors.top: title.bottom
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.topMargin: 20
ButtonGroup {
id: accountGroup
}
@ -55,7 +57,7 @@ SwipeView {
checked: index == 0 ? true : false
ButtonGroup.group: accountGroup
onClicked: {
wizardStep2.selectedIndex = index;
wizardStep2.selectedIndex = index
}
}
Column {
@ -72,11 +74,9 @@ SwipeView {
width: 160
elide: Text.ElideMiddle
}
}
}
}
}
ListView {
@ -84,12 +84,8 @@ SwipeView {
contentWidth: 200
model: onboardingModel
delegate: addressViewDelegate
Layout.fillHeight: true
Layout.fillWidth: true
anchors.topMargin: 36
anchors.fill: parent
}
}
Button {
text: "Select"
@ -97,12 +93,11 @@ SwipeView {
anchors.bottom: parent.bottom
anchors.bottomMargin: 20
onClicked: {
console.log("button: " + wizardStep2.selectedIndex);
console.log("button: " + wizardStep2.selectedIndex)
swipeView.incrementCurrentIndex();
swipeView.incrementCurrentIndex()
}
}
}
}
@ -140,9 +135,9 @@ SwipeView {
anchors.bottom: parent.bottom
anchors.bottomMargin: 20
onClicked: {
console.log("password: " + txtPassword.text);
console.log("password: " + txtPassword.text)
swipeView.incrementCurrentIndex();
swipeView.incrementCurrentIndex()
}
}
}
@ -183,7 +178,7 @@ SwipeView {
icon: StandardIcon.Warning
standardButtons: StandardButton.Ok
onAccepted: {
txtConfirmPassword.clear();
txtConfirmPassword.clear()
swipeView.currentIndex = 1
txtPassword.focus = true
}
@ -203,16 +198,17 @@ SwipeView {
anchors.bottom: parent.bottom
anchors.bottomMargin: 20
onClicked: {
console.log("confirm clicked " + txtConfirmPassword.text + " : " + txtPassword.text);
console.log("confirm clicked " + txtConfirmPassword.text + " : " + txtPassword.text)
if (txtConfirmPassword.text != txtPassword.text) {
return passwordsDontMatchError.open();
return passwordsDontMatchError.open()
}
const selectedAccountIndex = wizardStep2.selectedIndex
onboardingModel.storeAccountAndLogin(selectedAccountIndex, txtPassword.text)
onboardingModel.storeAccountAndLogin(selectedAccountIndex,
txtPassword.text)
swipeView.loginDone();
swipeView.loginDone()
}
}
}
@ -220,6 +216,7 @@ SwipeView {
/*##^##
Designer {
D{i:0;autoSize:true;height:480;width:640}
D{i:0;autoSize:true;formeditorColor:"#ffffff";height:480;width:640}
}
##^##*/