-
Notifications
You must be signed in to change notification settings - Fork 372
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
Improve navigation cpp #1061
base: dev
Are you sure you want to change the base?
Improve navigation cpp #1061
Conversation
6d31502
to
221acc1
Compare
d12a16d
to
63cadb3
Compare
63cadb3
to
0fcfa0c
Compare
0fcfa0c
to
040b8f8
Compare
0f79ad5
to
78ec451
Compare
78ec451
to
39716d6
Compare
contentHeight: col.implicitHeight + addSiteButton.implicitHeight + addSiteButton.anchors.bottomMargin + addSiteButton.anchors.topMargin | ||
width: parent.width | ||
|
||
height: 200 // TODO: Change to correct height |
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.
height: 200 // TODO: Change to correct height | |
anchors.bottom: addSiteButton.top |
anchors.top: parent.top | ||
anchors.left: parent.left | ||
anchors.right: parent.right | ||
property bool isFocusable: true | ||
|
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.
ScrollBar.vertical: ScrollBar {} |
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.
The default behavior of the ScrollBar is not working correctly. To fix this, you can initialize the ScrollBar as an empty object. Qt will then set the necessary default values automatically.
850ab1c
to
7b0713b
Compare
contentHeight: col.implicitHeight + addSiteButton.implicitHeight + addSiteButton.anchors.bottomMargin + addSiteButton.anchors.topMargin | ||
width: parent.width | ||
|
||
height: 200 // TODO: Change to correct height | ||
|
||
enabled: root.pageEnabled |
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.
enabled: root.pageEnabled | |
enabled: root.pageEnabled | |
reuseItems: true |
for optimization
433d02f
to
58b0e80
Compare
straightforward
6cfd50e
to
0620b45
Compare
This is still draft pull request since the transitions need to be fixed.
The idea of navigation is follow:
there are QML components which should be focused with property
isFocusable
with key Tab handlers,focusController
goes through all visible components with this property.No need to describe the focus logic manually but the focus navigation algorythm is straightforward - from upper left to bottom right.