-
Notifications
You must be signed in to change notification settings - Fork 50
Add OptionButton control #67
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
Conversation
Rebase on top of the merged #49? |
Concept ACK. Looks great! |
a6c389f
to
99d4f66
Compare
Rebased and split to a new component ( |
Tested 99d4f66:
|
@hebasto thanks, didn't notice it, will fix. |
99d4f66
to
653d7cd
Compare
0b5fb6b is included so that you can test by pressing TAB to switch between options and SPACE to select it (we don't have focus feedback yet). |
Does not work for me on Linux. Only mouse clicks work. |
2acd4a7 "qml: Drop import qualifier BitcoinCoreComponents" Wouldn't it be useful to keep it as is in case if we use |
Built on ubuntu with depends and works by pressing TAB and SPACE. I'll include focus feedback since @GBKS already has a suggestion for that. |
That should be fine, I don't expect name collisions - at least I'd like to avoid ambiguities. |
653d7cd
to
4c4aa30
Compare
Now with hover and focus feedback. Rebased on top of #73 to have the macOS artifact. |
e143115
to
6af285e
Compare
Rebased, made adjustments suggested by @GBKS, made |
6af285e
to
b70ee53
Compare
Rebased on #74. |
b70ee53
to
7cde50b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested 7cde50b on Linux Mint 20.2 (Qt 5.12.8).
Tab
(focus moving) and Space
(focus selecting) work as expected.
What should be a role of the Return
key in focus treatment?
Also:
$ src/qt/bitcoin-qt -signet
qrc:/qml/pages/stub.qml:34:9: QML Pane: Binding loop detected for property "implicitHeight"
qrc:/qml/pages/stub.qml:34:9: QML Pane: Binding loop detected for property "implicitHeight"
Thanks @hebasto, will address both comments. |
Follow Qt recomendation (1) since the background is a solid color. 1. https://doc.qt.io/qt-5/qml-qtquick-controls2-applicationwindow.html#background-prop
Label implicit height depends on the font size but the font size depends on the label height. This results in a runtime anchor loop warning.
Label implicit height depends on the font size but the font size depends on the label height. This results in a runtime anchor loop warning. Github-Pull: bitcoin-core#67 Rebased-From: 6bedd3d
Github-Pull: bitcoin-core#67 Rebased-From: 5b00612
Github-Pull: bitcoin-core#67 Rebased-From: 37cfe4e
Github-Pull: bitcoin-core#67 Rebased-From: cbe91f6
Github-Pull: bitcoin-core#67 Rebased-From: 7985aad
Github-Pull: bitcoin-core#67 Rebased-From: 61668e9
Follow Qt recomendation (1) since the background is a solid color. 1. https://doc.qt.io/qt-5/qml-qtquick-controls2-applicationwindow.html#background-prop Github-Pull: bitcoin-core#67 Rebased-From: cd5527f
Label implicit height depends on the font size but the font size depends on the label height. This results in a runtime anchor loop warning. Github-Pull: bitcoin-core#67 Rebased-From: 6bedd3d
Github-Pull: bitcoin-core#67 Rebased-From: 37cfe4e
Github-Pull: bitcoin-core#67 Rebased-From: cbe91f6
Github-Pull: bitcoin-core#67 Rebased-From: 7985aad
Github-Pull: bitcoin-core#67 Rebased-From: 61668e9
Follow Qt recomendation (1) since the background is a solid color. 1. https://doc.qt.io/qt-5/qml-qtquick-controls2-applicationwindow.html#background-prop Github-Pull: bitcoin-core#67 Rebased-From: cd5527f
Label implicit height depends on the font size but the font size depends on the label height. This results in a runtime anchor loop warning. Github-Pull: bitcoin-core#67 Rebased-From: 6bedd3d
Github-Pull: bitcoin-core#67 Rebased-From: 37cfe4e
Github-Pull: bitcoin-core#67 Rebased-From: cbe91f6
Github-Pull: bitcoin-core#67 Rebased-From: 7985aad
Github-Pull: bitcoin-core#67 Rebased-From: 61668e9
Follow Qt recomendation (1) since the background is a solid color. 1. https://doc.qt.io/qt-5/qml-qtquick-controls2-applicationwindow.html#background-prop Github-Pull: bitcoin-core#67 Rebased-From: cd5527f
Label implicit height depends on the font size but the font size depends on the label height. This results in a runtime anchor loop warning. Github-Pull: bitcoin-core#67 Rebased-From: 6bedd3d
Github-Pull: bitcoin-core#67 Rebased-From: 37cfe4e
Github-Pull: bitcoin-core#67 Rebased-From: cbe91f6
Github-Pull: bitcoin-core#67 Rebased-From: 7985aad
Github-Pull: bitcoin-core#67 Rebased-From: 61668e9
Follow Qt recomendation (1) since the background is a solid color. 1. https://doc.qt.io/qt-5/qml-qtquick-controls2-applicationwindow.html#background-prop Github-Pull: bitcoin-core#67 Rebased-From: cd5527f
Label implicit height depends on the font size but the font size depends on the label height. This results in a runtime anchor loop warning. Github-Pull: bitcoin-core#67 Rebased-From: 6bedd3d
Github-Pull: bitcoin-core#67 Rebased-From: 37cfe4e
Github-Pull: bitcoin-core#67 Rebased-From: cbe91f6
Github-Pull: bitcoin-core#67 Rebased-From: 7985aad
Github-Pull: bitcoin-core#67 Rebased-From: 61668e9
Uh oh!
There was an error while loading. Please reload this page.