chore: fix last anchor warnings

This commit is contained in:
Jonathan Rainville 2020-05-27 14:40:58 -04:00 committed by Iuri Matias
parent 4a00f3f307
commit cccc7f599f
4 changed files with 346 additions and 337 deletions

View File

@ -115,7 +115,10 @@ StackLayout {
Menu {
id: contextMenu
MenuItem { text: "Leave Chat"; onTriggered: chatsModel.leaveActiveChat() }
MenuItem {
text: "Leave Chat"
onTriggered: chatsModel.leaveActiveChat()
}
}
}
}
@ -215,7 +218,7 @@ StackLayout {
onCountChanged: {
if (!this.atYEnd) {
// User has scrolled up, we don't want to scroll back
return;
return
}
// positionViewAtEnd doesn't work well. Instead, we use highlightFollowsCurrentItem
@ -223,7 +226,6 @@ StackLayout {
while (this.currentIndex < this.count - 1) {
this.incrementCurrentIndex()
}
}
}
}
@ -303,18 +305,20 @@ StackLayout {
id: mouseArea1
anchors.rightMargin: 50
anchors.fill: parent
onClicked : {
onClicked: {
txtData.forceActiveFocus(Qt.MouseFocusReason)
}
}
}
}
}
}
Item {
id: element
Layout.fillHeight: true
Layout.fillWidth: true
Item {
id: walkieTalkieContainer
anchors.left: parent.left
anchors.leftMargin: 200
anchors.right: parent.right
@ -335,6 +339,7 @@ StackLayout {
color: Theme.darkGrey
}
}
}
}
/*##^##
@ -342,3 +347,4 @@ Designer {
D{i:0;formeditorColor:"#ffffff";height:770;width:800}
}
##^##*/

View File

@ -14,11 +14,7 @@ Item {
id: contactsColumn
width: 300
Layout.minimumWidth: 200
Item {
Layout.preferredHeight: 100
Layout.fillHeight: false
Layout.fillWidth: true
Layout.fillHeight: true
Text {
id: title
@ -75,6 +71,7 @@ Item {
Rectangle {
id: addChat
x: 183
width: 36
height: 36
color: Theme.blue
@ -245,11 +242,17 @@ Item {
}
}
}
}
StackLayout {
Layout.fillHeight: true
Layout.fillWidth: true
anchors.bottom: parent.bottom
anchors.bottomMargin: 0
anchors.left: parent.left
anchors.leftMargin: 0
anchors.right: parent.right
anchors.rightMargin: 0
anchors.top: searchBox.bottom
anchors.topMargin: 16
currentIndex: chatGroupsListView.count > 0 ? 1 : 0
Item {
@ -321,12 +324,11 @@ Item {
}
}
}
}
Item {
id: chatGroupsContainer
Layout.fillWidth: true
Layout.fillHeight: true
Layout.fillWidth: true
Component {
id: chatViewDelegate
@ -435,6 +437,8 @@ Item {
delegate: chatViewDelegate
}
}
}
}
/*##^##

View File

@ -99,7 +99,7 @@ Item {
ListView {
id: contactListView
anchors.topMargin: 48
anchors.top: element4.bottom
anchors.top: element2.bottom
anchors.fill: parent
model: profileModel.contactList
delegate: contactsList

View File

@ -6,10 +6,9 @@ import Qt.labs.platform 1.1
import "../../../imports"
import "../../../shared"
Column {
Item {
id: walletInfoContainer
width: 340
spacing: 0
Text {
id: title