-
Notifications
You must be signed in to change notification settings - Fork 50
Add cmake, qt6, and bitcoin core submodule #475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pinheadmz
wants to merge
29
commits into
bitcoin-core:qt6
Choose a base branch
from
pinheadmz:submodule-qt6-cmake
base: qt6
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://doc.qt.io/qt-6/qtquickcontrols-index.html#versions "In Qt 6, both the major and minor versions match, and version numbers may be omitted from imports in QML. If the version is omitted, the latest version will be used."" The old version number for this module in particular resulted in a "not-installed" error
QQueue inherits from QList. In Qt5 size() returned an int: https://doc.qt.io/archives/qt-5.15/qlist.html#size but in Qt6 size() returns a qtsizetype: https://doc.qt.io/qt-6/qlist.html#size
This is setting a property in an Icon which is defined by us in Icon.qml as a Button with required property color and icon.color: root.color. In Qt6, only declared public properties are accessible from outside the component. Qt5 was more lenient about this.
See bitcoin-core#430 This code was merged into bitcoin/src in the gui-qml repository but should have been either been merged upstream into Bitcoin Core or just implemented in the GUI, which is what we do in this commit.
This is a reversion of 16f77a5 from bitcoin-core#359 which changed code in Bitcoin Core to notify new peers by their type. That code needs to be either merged upstream to Bitcoin Core or otherwise worked-around in gui-qml. Since the actual notification from Bitcoin Core only sends an int of the TOTAL number of connections (not just OUTBOUND) whatever UI there is to display this number to the user is probably now labeled incorrectly.
"legacy GUI" comments added to indicate which helper functions execute the corresponding code in legacy qt/bitcoin.cpp common::InitConfig was created in bitcoin/bitcoin#27150 to de-duplicate a lot of this code. gArgs.GetChainTypeString() was added in bitcoin/bitcoin#27491
for DEFAULT_SCRIPTCHECK_THREADS moved from validation.h in bitcoin/bitcoin#26762
I would have preferred to pull in a tagged release but there is no current release that includes bitcoin/bitcoin#32814 which fixes a critical when building qt on macos.
c2bc9a5
to
4b27183
Compare
cf2a192
to
df83ecf
Compare
df83ecf
to
67423ba
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
Git submodule
Bitcoin core is now included as a git submodule. This is a cleaner model than forking the bitcoin core repo:
Cmake
Adds a cmake build system on top of the new submodule+
qml/
pair. We currently still need to compile upstreamqt/
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: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. 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:
qt/
from upstream and integrate in this repo