mirror of
https://github.com/muesli/telephant
synced 2024-11-29 14:50:23 +00:00
69 lines
2 KiB
QML
69 lines
2 KiB
QML
import QtQuick 2.4
|
|
import QtQuick.Controls 2.1
|
|
import QtQuick.Controls.Material 2.1
|
|
import QtQuick.Layouts 1.3
|
|
|
|
Popup {
|
|
property var message
|
|
|
|
id: popup
|
|
|
|
modal: true
|
|
// focus: true
|
|
height: Math.min(mainWindow.height * 0.8, layout.implicitHeight + 32)
|
|
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
|
|
|
|
Flickable {
|
|
id: flickable
|
|
anchors.fill: parent
|
|
clip: true
|
|
contentHeight: layout.height
|
|
|
|
ColumnLayout {
|
|
id: layout
|
|
width: parent.width
|
|
|
|
MessageView {
|
|
showActionButtons: false
|
|
name: message.name
|
|
messageid: message.messageid
|
|
posturl: message.posturl
|
|
author: message.author
|
|
authorid: message.authorid
|
|
authorurl: message.authorurl
|
|
avatar: message.avatar
|
|
body: message.body
|
|
createdat: message.createdat
|
|
actor: message.actor
|
|
actorname: message.actorname
|
|
reply: message.reply
|
|
replytoid: message.replytoid
|
|
replytoauthor: message.replytoauthor
|
|
forward: message.forward
|
|
mention: message.mention
|
|
like: message.like
|
|
mediapreview: message.mediapreview
|
|
mediaurl: message.mediaurl
|
|
liked: message.liked
|
|
shared: message.shared
|
|
}
|
|
|
|
RowLayout {
|
|
Layout.alignment: Qt.AlignRight
|
|
|
|
Button {
|
|
id: sendButton
|
|
Layout.alignment: Qt.AlignBottom | Qt.AlignRight
|
|
highlighted: true
|
|
text: qsTr("Share")
|
|
|
|
onClicked: {
|
|
popup.close()
|
|
uiBridge.shareButton(message.messageid)
|
|
message.shared = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|