Skip to content

Commit 9bb9df5

Browse files
committed
qml: Add stub window
Github-Pull: bitcoin-core#5 Rebased-From: e2104f8
1 parent d558f6d commit 9bb9df5

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

src/qml/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ qt6_add_qml_module(bitcoin_qml
1010
STATIC
1111
SOURCES
1212
bitcoin.cpp
13+
RESOURCE_PREFIX /qt/qml/
14+
QML_FILES
15+
pages/stub.qml
1316
)
1417

1518
target_compile_definitions(bitcoin_qml

src/qml/bitcoin.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ int QmlGuiMain(int argc, char* argv[])
5252
boost::signals2::scoped_connection handler_init_message = ::uiInterface.InitMessage_connect(noui_InitMessage);
5353

5454
QGuiApplication app(argc, argv);
55+
QQmlApplicationEngine engine("src/qml/pages/stub.qml");
56+
if (engine.rootObjects().isEmpty()) {
57+
return EXIT_FAILURE;
58+
}
5559

5660
// Parse command-line options. We do this after qt in order to show an error if there are problems parsing these.
5761
SetupServerArgs(gArgs);

src/qml/pages/stub.qml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import QtQuick.Controls
2+
3+
ApplicationWindow {
4+
id: appWindow
5+
title: "Bitcoin Core TnG"
6+
minimumWidth: 750
7+
minimumHeight: 450
8+
visible: true
9+
}

0 commit comments

Comments
 (0)