Support panes in QML dummy data

This commit is contained in:
Christian Muehlhaeuser 2019-05-15 00:51:04 +02:00
parent b5354a73be
commit b3ebcf3833
No known key found for this signature in database
GPG key ID: 3CF9FA45CA1EBB7E
3 changed files with 39 additions and 1 deletions

View file

@ -10,5 +10,5 @@ QtObject {
property int followerCount: 42
property int postSizeLimit: 500
property ListModel messages: messageModel
property ListModel panes: paneModel
}

View 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
}
}

View file

@ -0,0 +1,8 @@
import QtQuick 2.4
ListModel {
Component.onCompleted: {
append({"panename": "Messages", "msgmodel": messageModel});
append({"panename": "Notifications", "msgmodel": notificationModel});
}
}