2019-12-07 00:20:34 +11:00
|
|
|
import QtQuick 2.12
|
|
|
|
import "../../Base"
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
implicitWidth: 800
|
|
|
|
implicitHeight: firstDelegate ? firstDelegate.height : 0
|
2019-12-07 00:22:38 +11:00
|
|
|
color: theme.chat.fileTransfer.background
|
2019-12-07 00:20:34 +11:00
|
|
|
opacity: implicitHeight ? 1 : 0
|
|
|
|
clip: true
|
|
|
|
|
|
|
|
|
|
|
|
property int delegateHeight: 0
|
|
|
|
|
|
|
|
readonly property var firstDelegate:
|
2019-12-07 07:44:25 +11:00
|
|
|
transferList.contentItem.visibleChildren[0]
|
2019-12-07 00:20:34 +11:00
|
|
|
|
2019-12-07 07:44:25 +11:00
|
|
|
readonly property alias transferCount: transferList.count
|
2019-12-07 00:20:34 +11:00
|
|
|
|
|
|
|
|
|
|
|
Behavior on implicitHeight { HNumberAnimation {} }
|
|
|
|
|
|
|
|
HListView {
|
2019-12-07 07:44:25 +11:00
|
|
|
id: transferList
|
2019-12-07 00:20:34 +11:00
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
model: HListModel {
|
|
|
|
keyField: "uuid"
|
|
|
|
source: modelSources[["Upload", chatPage.roomId]] || []
|
|
|
|
}
|
|
|
|
|
2019-12-07 07:44:25 +11:00
|
|
|
delegate: Transfer { width: transferList.width }
|
2019-12-07 00:20:34 +11:00
|
|
|
}
|
|
|
|
}
|