This repository has been archived on 2023-11-19. You can view files and clone it, but cannot push or open issues or pull requests.
goober-bb10/assets/ThreadPage.qml

29 lines
642 B
QML
Raw Normal View History

2016-09-24 15:13:45 +00:00
import bb.cascades 1.4
Page {
Container {
ListView {
id: threadView
dataModel: ArrayDataModel {
id: threadModel
}
listItemComponents: [
ListItemComponent {
id: root
PostItem {}
}
]
function sendReply(text, pid) {
pnut.sendReply(text, pid);
}
function getUserName() {
return _app.setting("username")
}
}
}
function loadThread(data) {
threadModel.append(data);
}
}