2022-04-23 14:32:36 +02:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Layouts
|
|
|
|
import QtQuick.Controls.Material
|
|
|
|
import QtQuick.Window
|
|
|
|
import Qt5Compat.GraphicalEffects
|
2022-05-05 13:02:54 +02:00
|
|
|
import ScreenPlayApp
|
|
|
|
import ScreenPlay
|
|
|
|
import ScreenPlayUtil as Util
|
2022-04-23 14:32:36 +02:00
|
|
|
|
2022-05-05 13:02:54 +02:00
|
|
|
Util.Dialog {
|
2022-04-23 14:32:36 +02:00
|
|
|
id: root
|
|
|
|
|
|
|
|
property ApplicationWindow window
|
|
|
|
property string message
|
|
|
|
standardButtons: Dialog.Ok | Dialog.Help
|
|
|
|
onHelpRequested: {
|
2023-11-02 12:50:29 +01:00
|
|
|
Qt.openUrlExternally("https://forum.screen-play.app/");
|
2022-04-23 14:32:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Connections {
|
|
|
|
function onDisplayErrorPopup(msg) {
|
2023-02-02 15:25:26 +01:00
|
|
|
root.message = msg;
|
|
|
|
root.window.show();
|
|
|
|
root.open();
|
2022-04-23 14:32:36 +02:00
|
|
|
}
|
|
|
|
|
2022-04-30 12:07:54 +02:00
|
|
|
target: App.screenPlayManager
|
2022-04-23 14:32:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
contentItem: Item {
|
2023-11-02 12:50:29 +01:00
|
|
|
implicitWidth: 600
|
|
|
|
implicitHeight: 400
|
2022-04-23 14:32:36 +02:00
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
anchors.margins: 20
|
|
|
|
anchors.fill: parent
|
|
|
|
spacing: 20
|
|
|
|
|
|
|
|
Image {
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
Layout.preferredWidth: 150
|
|
|
|
Layout.preferredHeight: 150
|
2022-04-30 13:22:17 +02:00
|
|
|
source: "qrc:/qml/ScreenPlayApp/assets/icons/exclamation-triangle-solid.svg"
|
2022-04-23 14:32:36 +02:00
|
|
|
fillMode: Image.PreserveAspectFit
|
|
|
|
|
|
|
|
layer {
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
effect: ColorOverlay {
|
|
|
|
color: Material.color(Material.DeepOrange)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Text {
|
|
|
|
text: root.message
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.margins: 20
|
|
|
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
2022-04-30 12:07:54 +02:00
|
|
|
font.family: App.settings.font
|
2022-04-23 14:32:36 +02:00
|
|
|
font.pointSize: 16
|
|
|
|
color: Material.primaryTextColor
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|