Add report message functionality
This commit is contained in:
parent
bbfbba30b0
commit
bb971b0575
6 changed files with 114 additions and 2 deletions
|
|
@ -415,6 +415,12 @@ Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
Component {
|
||||
id: reportDialog
|
||||
|
||||
ReportMessage {}
|
||||
}
|
||||
|
||||
Platform.MenuItem {
|
||||
enabled: visible
|
||||
text: qsTr("Go to &message")
|
||||
|
|
@ -521,6 +527,16 @@ Item {
|
|||
timelineRoot.destroyOnClose(dialog);
|
||||
}
|
||||
}
|
||||
Platform.MenuItem {
|
||||
text: qsTr("Report message")
|
||||
enabled: visible
|
||||
onTriggered: function () {
|
||||
var dialog = reportDialog.createObject(timelineRoot, {"eventId": messageContextMenu.eventId});
|
||||
dialog.show();
|
||||
dialog.forceActiveFocus();
|
||||
timelineRoot.destroyOnClose(dialog);
|
||||
}
|
||||
}
|
||||
Platform.MenuItem {
|
||||
enabled: visible
|
||||
text: qsTr("&Save as")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue