Commit 5f69224
committed
Merge #475: Add cmake, qt6, and bitcoin core submodule
67423ba build artifacts in CI (Matthew Zipkin)
1091c9f Update README for qt6 and cmake (Matthew Zipkin)
7573889 move qml/README to front page (Matthew Zipkin)
c01451c build with cmake (Matthew Zipkin)
9020d75 include Bitcoin Core as a git submodule (Matthew Zipkin)
58f8d5a CRecipient now takes CTxDestination not CScript (Matthew Zipkin)
7d7f55f Use Txid instead of uint256 (Matthew Zipkin)
c2ac37d listWalletDir() now returns vector of std::pair (Matthew Zipkin)
08f97b8 remove "watch only" -- no longer possible with descriptor wallets (Matthew Zipkin)
b3d78ad options_model: #include chainstatemanager_args (Matthew Zipkin)
764cb5e update time offset from NodeStateStats (Matthew Zipkin)
3a98d9f copy qt/main.cpp and remove legacy GUI logic (Matthew Zipkin)
a1e1ef8 bitcoin.cpp: rebase node initialization for upstream master (Matthew Zipkin)
ee7928a Clean up Untranslated strings (Matthew Zipkin)
4a67da8 temporarily revert PeersNumByType (needs follow-up) (Matthew Zipkin)
e0e235b nodemodel: copy ProxyAddress methods into qml/ (Matthew Zipkin)
4de5fd6 remove UPnP (Matthew Zipkin)
26042dd use fs::path::utf8string() (Matthew Zipkin)
947e7df update QSGRendererInterface strings (Matthew Zipkin)
92b5f03 use *CACHE constants from bitcoin core (Matthew Zipkin)
1140537 use FoundBlock() interface instead of removed getBlockTime() (Matthew Zipkin)
210439d icons: copy bitcoin.png into qml/ (Matthew Zipkin)
ddc8293 bitcoin.cpp: replace LogPrint with LogDebug (Matthew Zipkin)
7fe6636 send: access declared property color (Matthew Zipkin)
6af46c5 Qt6 changed RegExpValidator to RegularExpressionValidator (Matthew Zipkin)
655d02f QQueue requires cast qtsizetype to int (Matthew Zipkin)
52599cd explicity capture `this` in lambdas as required by C++11 (Matthew Zipkin)
3643091 StorageLocations: Qt 6 FileDialog has slightly different properties (Matthew Zipkin)
fb278ed Use QtQuick.Dialogs default version for Qt6 compatibility (Matthew Zipkin)
Pull request description:
This PR rebases the QML GUI code on upstream Bitcoin Core master, updates dependencies and build system, and defines a new organizational model for the project which may eventually lead to a separation of the GUI completely from bitcoin/bitcoin.
# Code changes in `qml/`
Each commit has a link to Qt docs or to a Bitcoin Core PR to explain it. QML code had to be updated to respect API changes and other conflicts:
- Upstream master bitcoin/bitcoin
- Qt6
# Git submodule
Bitcoin core is now included as a git submodule. This is a cleaner model than forking the bitcoin core repo:
- Prevent GUI contributors from creating new conflicts with upstream by changing bitcoin core in the forked repo
- Garuntee that bitcoin core code is not modified, meaning we don't have to run upstream tests
- Simplifies the build instructions and the repo itself to make it easier for front end contributors
# Cmake
Adds a cmake build system on top of the new submodule+`qml/` pair. We currently still need to compile upstream `qt/` and there is no flag to separate its library from its binary, so the result is that both GUIs will be built, but no command-line daemon, fuzz, tests, or utility binaries:
```
build/bin
├── bitcoin-core-app
└── bitcoin-qt
```
**Note:** I'm going with the title "Bitcoin Core App" from the design community and to make even more clear the separation from `bitcoin-qt`
# CI
I added a very minimal CI to build binaries for macos and ubuntu, and upload the [artifacts](https://github.com/bitcoin-core/gui-qml/actions/runs/16242179284). This is mainly a "does it build?" test but I have downloaded and run both artifacts locally and they do work, given that the right linked libraries are available. Future work can make those artifacts more easily usable by testers.
# Future work
Obviously there is still a lot to do, but I consider these to be the next major steps:
- GUI tests
- Tests builds for all supported platforms
- Extract `qt/` from upstream and integrate in this repo
- Much of that code can probably be abandoned now
- The build system can be cleaned up and the legacy binary removed from the output
- Extract Qt depends build from upstream and integrate in this repo
- After this, the upstream repo will be set up to clear out all GUI code
- Figure out guix builds, guix attestations, project release process, and overall degree of separation from Bitcoin Core
Top commit has no ACKs.
Tree-SHA512: 25046860f1055a9e9d24e5d92ddefac81483f2c78dbc0adc40e69adb85535d719d2c7f976a2bc4b504fcf38288842f4e6b3722bc9d8c6a188a82d031bc690258File tree
33 files changed
+538
-157
lines changed- .github/workflows
- cmake/module
- doc
- qml
- components
- controls
- models
- pages/wallet
- res/icons
33 files changed
+538
-157
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | | - | |
| 7 | + | |
6 | 8 | | |
7 | | - | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | | - | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | | - | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | 59 | | |
61 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
66 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
67 | 82 | | |
68 | 83 | | |
69 | | - | |
70 | | - | |
| 84 | + | |
71 | 85 | | |
72 | 86 | | |
73 | | - | |
| 87 | + | |
74 | 88 | | |
75 | | - | |
76 | 89 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 90 | + | |
80 | 91 | | |
81 | 92 | | |
82 | | - | |
| 93 | + | |
83 | 94 | | |
84 | 95 | | |
85 | 96 | | |
86 | 97 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 98 | + | |
| 99 | + | |
92 | 100 | | |
93 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
94 | 110 | | |
95 | 111 | | |
96 | 112 | | |
97 | 113 | | |
98 | | - | |
| 114 | + | |
99 | 115 | | |
100 | | - | |
| 116 | + | |
101 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
0 commit comments