chore: fix remaining warnings on Chat files

This commit is contained in:
Jonathan Rainville 2020-05-27 13:56:25 -04:00 committed by Iuri Matias
parent b8a5d25d8b
commit 4a00f3f307
2 changed files with 6 additions and 10 deletions

View File

@ -313,10 +313,8 @@ StackLayout {
} }
ColumnLayout { Item {
Layout.margins: 0 id: element
Layout.fillHeight: false
Layout.fillWidth: false
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 200 anchors.leftMargin: 200
anchors.right: parent.right anchors.right: parent.right
@ -331,10 +329,10 @@ StackLayout {
Text { Text {
text: "Select a chat to start messaging" text: "Select a chat to start messaging"
anchors.horizontalCenter: parent.horizontalCenter
font.weight: Font.DemiBold font.weight: Font.DemiBold
font.pixelSize: 15 font.pixelSize: 15
color: Theme.darkGrey color: Theme.darkGrey
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
} }
} }
} }

View File

@ -7,13 +7,12 @@ import QtGraphicalEffects 1.12
import "../../../imports" import "../../../imports"
import "./components" import "./components"
Column { Item {
property alias chatGroupsListViewCount: chatGroupsListView.count property alias chatGroupsListViewCount: chatGroupsListView.count
property alias searchStr: searchText.text property alias searchStr: searchText.text
id: contactsColumn id: contactsColumn
width: 300 width: 300
// height: parent.height
Layout.minimumWidth: 200 Layout.minimumWidth: 200
Item { Item {
@ -343,8 +342,7 @@ Column {
anchors.leftMargin: Theme.padding anchors.leftMargin: Theme.padding
radius: 8 radius: 8
// Hide the box if it is filtered out // Hide the box if it is filtered out
property bool isVisible: searchStr == "" || name.includes( property bool isVisible: searchStr == "" || name.includes(searchStr)
searchStr)
visible: isVisible ? true : false visible: isVisible ? true : false
height: isVisible ? 64 : 0 height: isVisible ? 64 : 0
@ -441,7 +439,7 @@ Column {
/*##^## /*##^##
Designer { Designer {
D{i:0;height:770;width:300;formeditorColor:"#ffffff"} D{i:0;formeditorColor:"#ffffff";height:770;width:300}
} }
##^##*/ ##^##*/