2023-02-22 01:48:49 +03:00
|
|
|
// SPDX-FileCopyrightText: Nheko Contributors
|
2021-07-31 05:13:58 +03:00
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2023-09-30 17:00:04 +03:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
import im.nheko
|
2021-07-31 05:13:58 +03:00
|
|
|
|
|
|
|
ApplicationWindow {
|
|
|
|
id: rawMessageRoot
|
|
|
|
|
|
|
|
property alias rawMessage: rawMessageView.text
|
|
|
|
|
|
|
|
height: 420
|
|
|
|
width: 420
|
2023-06-02 02:29:05 +03:00
|
|
|
color: palette.window
|
2021-08-19 17:55:54 +03:00
|
|
|
flags: Qt.Tool | Qt.WindowStaysOnTopHint | Qt.WindowCloseButtonHint | Qt.WindowTitleHint
|
2021-07-31 05:13:58 +03:00
|
|
|
|
|
|
|
Shortcut {
|
|
|
|
sequence: StandardKey.Cancel
|
|
|
|
onActivated: rawMessageRoot.close()
|
|
|
|
}
|
|
|
|
|
|
|
|
ScrollView {
|
2021-07-31 20:55:56 +03:00
|
|
|
anchors.margins: Nheko.paddingMedium
|
2021-07-31 05:13:58 +03:00
|
|
|
anchors.fill: parent
|
|
|
|
padding: Nheko.paddingMedium
|
|
|
|
|
|
|
|
TextArea {
|
|
|
|
id: rawMessageView
|
|
|
|
|
|
|
|
font: Nheko.monospaceFont()
|
2023-06-02 02:29:05 +03:00
|
|
|
color: palette.text
|
2021-07-31 05:13:58 +03:00
|
|
|
readOnly: true
|
2021-12-19 08:37:47 +03:00
|
|
|
textFormat: Text.PlainText
|
2021-07-31 20:55:56 +03:00
|
|
|
|
2022-01-06 07:33:08 +03:00
|
|
|
anchors.fill: parent
|
|
|
|
|
2021-07-31 20:55:56 +03:00
|
|
|
background: Rectangle {
|
2023-06-02 02:29:05 +03:00
|
|
|
color: palette.base
|
2021-07-31 20:55:56 +03:00
|
|
|
}
|
2021-08-04 03:27:50 +03:00
|
|
|
|
2021-07-31 05:13:58 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
footer: DialogButtonBox {
|
|
|
|
standardButtons: DialogButtonBox.Ok
|
|
|
|
onAccepted: rawMessageRoot.close()
|
|
|
|
}
|
2021-08-04 03:27:50 +03:00
|
|
|
|
2021-07-31 05:13:58 +03:00
|
|
|
}
|