Warning, /network/tokodon/src/content/ui/ThreadPage.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2023 Carl Schwan <carl@carlschwan.eu>
0002 // SPDX-License-Identifier: LGPL-2.0-or-later
0003 
0004 import QtQuick
0005 import org.kde.tokodon
0006 
0007 TimelinePage {
0008     id: root
0009 
0010     required property string postId
0011 
0012     expandedPost: true
0013     showPostAction: false
0014     showFilterAction: false
0015 
0016     Connections {
0017         target: root.model
0018 
0019         function onLoadingChanged() {
0020             root.listView.positionViewAtIndex(root.model.getRootIndex(), ListView.Beginning);
0021         }
0022     }
0023 
0024     Connections {
0025         target: applicationWindow()
0026 
0027         // Refresh the model when we reply to it ourselves
0028         function onNewPost() {
0029             model.refresh();
0030         }
0031     }
0032 
0033     model: ThreadModel {
0034         postId: root.postId
0035     }
0036 }