mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 06:47:01 +00:00
26 lines
595 B
QML
26 lines
595 B
QML
import QtQuick 2.12
|
|
import QtQuick.Controls 2.3
|
|
import QtQuick.Layouts 1.3
|
|
import "../../../../shared"
|
|
import "../../../../imports"
|
|
import "../components"
|
|
|
|
Item {
|
|
property alias channelListCount: chatGroupsListView.count
|
|
id: chatGroupsContainer
|
|
Layout.fillHeight: true
|
|
Layout.fillWidth: true
|
|
|
|
ListView {
|
|
id: chatGroupsListView
|
|
anchors.topMargin: 24
|
|
anchors.fill: parent
|
|
model: chatsModel.chats
|
|
delegate: Channel {}
|
|
onCountChanged: {
|
|
if (count > 0) {
|
|
currentIndex = 0;
|
|
}
|
|
}
|
|
}
|
|
} |