File tree Expand file tree Collapse file tree 2 files changed +26
-12
lines changed Expand file tree Collapse file tree 2 files changed +26
-12
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ bool InitErrorMessageBox(
58
58
[[maybe_unused]] unsigned int style)
59
59
{
60
60
QQmlApplicationEngine engine;
61
+ engine.addImportPath (QStringLiteral (" :/qt/qml" ));
61
62
engine.rootContext ()->setContextProperty (" message" , QString::fromStdString (message.translated ));
62
63
engine.load (QUrl (QStringLiteral (" qrc:/qt/qml/BitcoinApp/initerrormessage.qml" )));
63
64
if (engine.rootObjects ().isEmpty ()) {
Original file line number Diff line number Diff line change 4
4
5
5
import QtQuick
6
6
import QtQuick.Controls
7
+ import QtQuick.Layouts
8
+ import BitcoinApp.Controls
7
9
8
10
ApplicationWindow {
9
- title : " Bitcoin Core TnG "
11
+ id : root
10
12
visible: true
13
+ title: " Bitcoin Core App"
11
14
minimumWidth: 500
12
- minimumHeight: 200
15
+ minimumHeight: 250
16
+ color: Theme .color .background
17
+ ColumnLayout {
18
+ spacing: 30
19
+ anchors .top : parent .top
20
+ anchors .horizontalCenter : parent .horizontalCenter
21
+ width: 340
13
22
14
- Dialog {
15
- anchors .centerIn : parent
16
- title: qsTr (" Error" )
17
- contentItem:
18
- Label {
19
- text: message
20
- }
21
- visible: true
22
- standardButtons: Dialog .Ok
23
- onAccepted: Qt .quit ()
23
+ Header {
24
+ Layout .topMargin : 30
25
+ Layout .fillWidth : true
26
+ bold: true
27
+ header: qsTr (" There was an issue starting up." )
28
+ headerSize: 21
29
+ description: message
30
+ descriptionMargin: 3
31
+ }
32
+ OutlineButton {
33
+ Layout .alignment : Qt .AlignCenter
34
+ text: qsTr (" Close" )
35
+ onClicked: Qt .quit ()
36
+ }
24
37
}
25
38
}
You can’t perform that action at this time.
0 commit comments