mirror of
https://github.com/muesli/telephant
synced 2025-02-16 19:48:24 +00:00
Support panes in QML dummy data
This commit is contained in:
parent
b5354a73be
commit
b3ebcf3833
3 changed files with 39 additions and 1 deletions
|
@ -10,5 +10,5 @@ QtObject {
|
|||
property int followerCount: 42
|
||||
property int postSizeLimit: 500
|
||||
|
||||
property ListModel messages: messageModel
|
||||
property ListModel panes: paneModel
|
||||
}
|
||||
|
|
30
qml/dummydata/notificationModel.qml
Normal file
30
qml/dummydata/notificationModel.qml
Normal file
|
@ -0,0 +1,30 @@
|
|||
import QtQuick 2.4
|
||||
|
||||
ListModel {
|
||||
ListElement {
|
||||
name: "muesli"
|
||||
messageid: "901223685058703361"
|
||||
author: "mueslix"
|
||||
actorname: "eve"
|
||||
avatar: "https://pbs.twimg.com/profile_images/779041781413507072/TaqJsdzS_normal.jpg"
|
||||
body: "This is a very, very long test post, that should probably get word-wrapped. But does it work?"
|
||||
createdat: "now"
|
||||
reply: false
|
||||
mention: false
|
||||
like: true
|
||||
followed: false
|
||||
}
|
||||
ListElement {
|
||||
name: "somebody"
|
||||
messageid: "901223685058703361"
|
||||
author: "somebody"
|
||||
actorname: "fribbledom"
|
||||
avatar: "https://pbs.twimg.com/profile_images/779041781413507072/TaqJsdzS_normal.jpg"
|
||||
body: "Please boost it, it's my birthday"
|
||||
createdat: "now"
|
||||
reply: false
|
||||
forward: true
|
||||
mention: false
|
||||
followed: false
|
||||
}
|
||||
}
|
8
qml/dummydata/paneModel.qml
Normal file
8
qml/dummydata/paneModel.qml
Normal file
|
@ -0,0 +1,8 @@
|
|||
import QtQuick 2.4
|
||||
|
||||
ListModel {
|
||||
Component.onCompleted: {
|
||||
append({"panename": "Messages", "msgmodel": messageModel});
|
||||
append({"panename": "Notifications", "msgmodel": notificationModel});
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue