Page MenuHomePhorge

RoomPage.qml
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

RoomPage.qml

/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2020-2023 Tusooa Zhu <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import QtQuick 2.2
import QtQuick.Layouts 1.15
import QtQuick.Controls 2.15
import org.kde.kirigami 2.13 as Kirigami
import moe.kazv.mxc.kazv 0.0 as MK
import '.' as Kazv
Kirigami.ScrollablePage {
id: roomPage
property string roomId: ''
property var room: sdkVars.roomList.room(roomId)
title: room.name || roomId
RoomTimelineView {
timeline: room.timeline()
}
onRoomChanged: {
kazvIOManager.deleteModelIfEmpty(roomId)
uploadList.model = kazvIOManager.getUploadJobs(roomId)
}
footer: Item {
height: childrenRect.height
width: parent.width
ListView {
id: uploadList
width: parent.width
height: contentHeight
model: kazvIOManager.getUploadJobs(roomId)
delegate: Kazv.KazvIOMenu {
width: parent.width
jobId: roomId
isUpload: true
}
}
Kazv.SendMessageBox {
id: sendMessageBos
width: parent.width
room: roomPage.room
anchors.top: uploadList.bottom
}
}
}

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 1, 7:32 PM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41820
Default Alt Text
RoomPage.qml (1 KB)

Event Timeline