-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
ListTimelinePage.qml
40 lines (33 loc) · 1.05 KB
/
ListTimelinePage.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// SPDX-FileCopyrightText: 2023 Joshua Goins <[email protected]>
// SPDX-License-Identifier: LGPL-2.0-or-later
import QtQuick
import org.kde.kirigami 2 as Kirigami
import org.kde.tokodon
TimelinePage {
id: root
property alias listId: timelineModel.listId
required property string name
property Component editListPage: Qt.createComponent("org.kde.tokodon", "EditListPage", Qt.Asynchronous)
title: name
showPostAction: false
Component.onCompleted: {
// TODO: When we can require KF 6.8, set it as a normal property
if (root.verticalScrollBarInteractive !== undefined) {
root.verticalScrollBarInteractive = false;
}
}
actions: Kirigami.Action {
text: i18n("Edit List")
icon.name: "edit-rename"
onTriggered: {
pageStack.layers.push(editListPage.createObject(root), {
purpose: EditListPage.Edit,
listId: root.listId
});
}
}
model: MainTimelineModel {
id: timelineModel
name: "list"
}
}