2019-05-09 03:40:00 +00:00
|
|
|
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
|
2019-05-13 06:08:11 +00:00
|
|
|
focus: true
|
2019-05-09 03:40:00 +00:00
|
|
|
height: Math.min(mainWindow.height * 0.8, layout.implicitHeight + 32)
|
2019-05-17 14:27:12 +00:00
|
|
|
width: Math.min(mainWindow.width * 0.66, 500)
|
|
|
|
anchors.centerIn: mainWindow.overlay
|
2019-05-09 03:40:00 +00:00
|
|
|
|
|
|
|
Flickable {
|
|
|
|
id: flickable
|
|
|
|
anchors.fill: parent
|
|
|
|
clip: true
|
|
|
|
contentHeight: layout.height
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
id: layout
|
|
|
|
width: parent.width
|
|
|
|
|
|
|
|
MessageView {
|
|
|
|
showActionButtons: false
|
2019-05-13 06:08:11 +00:00
|
|
|
message: popup.message
|
2019-05-09 03:40:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|