mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 14:54:48 +00:00
98d2c1df68
display a sticker when a content type sticker message is received display a sticker when a content type sticker message is received display a sticker when a content type sticker message is received display sticker fix height and default value cleanup cleanup cleanup use constants for the content type
51 lines
1.2 KiB
QML
51 lines
1.2 KiB
QML
import QtQuick 2.3
|
|
import QtQuick.Controls 2.3
|
|
import QtQuick.Controls 2.12 as QQC2
|
|
import QtQuick.Layouts 1.3
|
|
import Qt.labs.platform 1.1
|
|
|
|
ListModel {
|
|
ListElement {
|
|
userName: "Ferocious Herringbone Sinewave"
|
|
message: "Everybody betrayed me! \n I'm fed up with this world."
|
|
sticker: ""
|
|
contentType: 1
|
|
repeatMessageInfo: true
|
|
}
|
|
ListElement {
|
|
userName: "Teenage Mutant Turtle"
|
|
message: "You're tearing me apart, Lisa!"
|
|
sticker: ""
|
|
contentType: 1
|
|
repeatMessageInfo: true
|
|
}
|
|
ListElement {
|
|
userName: "Teenage Mutant Turtle"
|
|
message: "It's bullshit, I did not hit her.\nI did nooot."
|
|
sticker: ""
|
|
contentType: 1
|
|
repeatMessageInfo: false
|
|
}
|
|
ListElement {
|
|
userName: "Teenage Mutant Turtle"
|
|
//message: "Oh hi, Mark!"
|
|
contentType: 2
|
|
sticker: "Qme8vJtyrEHxABcSVGPF95PtozDgUyfr1xGjePmFdZgk9v"
|
|
repeatMessageInfo: false
|
|
}
|
|
ListElement {
|
|
userName: "me"
|
|
message: "Hi Johnny"
|
|
isCurrentUser: true
|
|
contentType: 1
|
|
sticker: ""
|
|
repeatMessageInfo: true
|
|
}
|
|
}
|
|
|
|
/*##^##
|
|
Designer {
|
|
D{i:0;autoSize:true;height:480;width:640}
|
|
}
|
|
##^##*/
|