Skip to content
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

Open
wants to merge 41 commits into
base: dev
Choose a base branch
from
Open

Improve navigation cpp #1061

wants to merge 41 commits into from

Conversation

CyAn84
Copy link
Collaborator

@CyAn84 CyAn84 commented Sep 11, 2024

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.

@CyAn84 CyAn84 force-pushed the improve_navigation_cpp branch 10 times, most recently from 6d31502 to 221acc1 Compare September 21, 2024 22:28
@CyAn84 CyAn84 force-pushed the improve_navigation_cpp branch 2 times, most recently from d12a16d to 63cadb3 Compare October 2, 2024 18:36
@Nethius Nethius linked an issue Oct 18, 2024 that may be closed by this pull request
@CyAn84 CyAn84 force-pushed the improve_navigation_cpp branch 5 times, most recently from 0f79ad5 to 78ec451 Compare October 25, 2024 14:55
@CyAn84 CyAn84 marked this pull request as ready for review October 25, 2024 14:58
@aiamnezia aiamnezia requested review from Nethius and removed request for Nethius October 29, 2024 17:04
contentHeight: col.implicitHeight + addSiteButton.implicitHeight + addSiteButton.anchors.bottomMargin + addSiteButton.anchors.topMargin
width: parent.width

height: 200 // TODO: Change to correct height
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ScrollBar.vertical: ScrollBar {}

Copy link
Collaborator

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.

@CyAn84 CyAn84 force-pushed the improve_navigation_cpp branch 2 times, most recently from 850ab1c to 7b0713b Compare October 30, 2024 15:52
contentHeight: col.implicitHeight + addSiteButton.implicitHeight + addSiteButton.anchors.bottomMargin + addSiteButton.anchors.topMargin
width: parent.width

height: 200 // TODO: Change to correct height

enabled: root.pageEnabled
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
enabled: root.pageEnabled
enabled: root.pageEnabled
reuseItems: true

for optimization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remote control not working on android tv version 4.7.0.0
3 participants