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
2016-09-24 08:13:45 -07:00

28 lines
642 B
QML

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);
}
}