cleanup qml

This commit is contained in:
Iuri Matias 2020-09-23 15:36:36 -04:00
parent 0da4633318
commit bcb8970817
4 changed files with 7 additions and 20 deletions

View File

@ -64,9 +64,6 @@ Item {
anchors.right: parent.right
anchors.top: searchBox.bottom
anchors.topMargin: Style.current.padding
onChannelListCountChanged: {
}
}
}

View File

@ -13,13 +13,11 @@ ScrollView {
Layout.fillHeight: true
Layout.fillWidth: true
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
contentHeight: {
return itemId.height
}
contentHeight: channelListContent.height
clip: true
Item {
id: itemId
id: channelListContent
Layout.fillHeight: true
anchors.top: parent.top
anchors.right: parent.right
@ -37,7 +35,6 @@ ScrollView {
anchors.rightMargin: Style.current.padding
anchors.leftMargin: Style.current.padding
interactive: false
// clip: true
model: chatsModel.chats
delegate: Channel {
name: model.name
@ -70,9 +67,8 @@ ScrollView {
EmptyView {
width: parent.width
// height: 500
anchors.top: chatGroupsListView.bottom
anchors.topMargin: 10
anchors.topMargin: Style.current.smallPadding
}
}

View File

@ -11,7 +11,6 @@ Item {
property var onCloseButtonPressed: function () {}
id: emptyView
clip: true
Layout.fillHeight: true
Layout.fillWidth: true
@ -146,11 +145,8 @@ Item {
anchors.topMargin: Style.current.smallPadding
width: parent.width
Item {
width: parent.width
SuggestedChannels {
id: sectionRepeater
}
SuggestedChannels {
id: sectionRepeater
}
}
}

View File

@ -71,11 +71,9 @@ ModalPopup {
return totalHeight + Style.current.padding
}
Item {
SuggestedChannels {
id: sectionRepeater
width: parent.width
SuggestedChannels {
id: sectionRepeater
}
}
}