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

Fix position of "connected" icon in Wi-Fi networks list #1849

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

blammit
Copy link
Contributor

@blammit blammit commented Jan 16, 2025

This also avoids the warning "Cannot anchor to an item that isn't a parent or sibling" when opening PageSettingsWifi.qml.

This also avoids the warning "Cannot anchor to an item that isn't a
parent or sibling" when opening PageSettingsWifi.qml.
@@ -84,9 +84,10 @@ Page {
primaryLabel.leftPadding: Theme.geometry_icon_size_medium + Theme.geometry_listItem_content_spacing

CP.ColorImage {
parent: delagate.primaryLabel
Copy link
Contributor

Choose a reason for hiding this comment

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

Is delagate intentionally misspelled to avoid clashing with the delegate keyword? I just tried fixing the spelling, and the result works fine on a site with favorite wifi connections such as 151899

Copy link
Contributor

@MikeTrahearn-Qinetic MikeTrahearn-Qinetic Jan 16, 2025

Choose a reason for hiding this comment

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

You can indeed use the id spelled the same as a property but my preference would be to give it a meaningful name instead of creating visual ambiguity (even though the compiler will favour using the id. In fact in stricter/newer versions of Qt to reference only the property delegate will create an unqualified reference error because the "delagate" is in fact a Component, not an object and to force it to do so would require adding pragma ComponentBehavior: Bound - something not available in Qt 6.6.

Copy link
Contributor Author

@blammit blammit Jan 16, 2025

Choose a reason for hiding this comment

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

I think the "delagate" was a misspelling when the change was first added, and just "delegate" would be fine. But yes, a more meaningful name would be better too.

I'll leave the PR as-is since the naming is a separate issue.

Copy link
Contributor

@DanielMcInnes DanielMcInnes left a comment

Choose a reason for hiding this comment

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

1 nit

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.

3 participants