Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F325650
RoomTimelineView.qml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
RoomTimelineView.qml
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2020 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
ListView
{
id: roomTimelineView
property
var
timeline
property
var
eventIds:
timeline
.
eventIds
property
string
selectedEventId
spacing:
Kirigami
.
Units
.
largeSpacing
//width: parent.width
//Layout.fillHeight: true
//anchors.fill: parent
model:
timeline
.
count
//Layout.minimumHeight: childrenRect.height
currentIndex:
-
1
//currentIndex: eventIds.indexOf(selectedEventId)
//onModelChanged: currentIndex = Qt.binding(function() { return eventIds.indexOf(selectedEventId) })
delegate:
EventView
{
event:
timeline
.
at
(
index
)
sender:
room
.
member
(
event
.
sender
)
stateKeyUser:
event
.
stateKey
?
room
.
member
(
event
.
stateKey
)
:
{}
}
/* Kirigami.BasicListItem { */
/* property var item: timeline.at(index) */
/* //onClicked: roomTimelineView.selectedEventId = item.eventId */
/* onClicked: {} */
/* checkable: false */
/* checked: false */
/* //onClicked: print("clicked room %1".arg(index)) */
/* //checkable: true */
/* //checked: roomTimelineView.selectedEventId == item.eventId */
/* //autoExclusive: true */
/* Label { */
/* text: i18n("Message from %1 of type %2: %3", item.sender, item.type, item.content) */
/* } */
/* /\* actions: [ */
/* Kirigami.Action { */
/* text: i18n("Set as favourite") */
/* iconName: "non-starred-symbolic" */
/* onTriggered: showPassiveNotification(i18n("Set %1 as favourite", item.name)) */
/* } */
/* ]*\/ */
/* } */
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 24, 4:19 AM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
92641
Default Alt Text
RoomTimelineView.qml (1 KB)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment