28 lines
642 B
QML
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);
|
|
}
|
|
}
|