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

Fixed behaviour of TextField in ProjectWizard #1370

Merged
merged 3 commits into from
May 6, 2021
Merged

Conversation

sklencar
Copy link
Contributor

@sklencar sklencar commented May 3, 2021

I couldn't replicate the issue, but I could replicate similar problem with auto uppercase - when a user types into an Attribute field with fixed uppercase option (usually double click on shift to "lock" shift), it always switches back to lower case. It doesn't happen for a project name field.

This PR fixes the issue described above. However, the reported issue could be very related and fixed as well. Best to test.
Now the field value is bound to text without an extra handling for displayText.

closes #1334

@sklencar
Copy link
Contributor Author

sklencar commented May 3, 2021

@jozefbudac Could you please test it and possibly confirm if it also fixed for the reported issue?
Thanks!

Copy link
Contributor

@PeterPetrik PeterPetrik left a comment

Choose a reason for hiding this comment

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

you may have fixed the uppercase bug, but now the user's custom Attribute Name is not used in the created project. since you do not assign the user input to AttributeName

@sklencar sklencar requested a review from PeterPetrik May 5, 2021 09:12
Comment on lines 33 to 34
Component.onCompleted: text = AttributeName
onDisplayTextChanged: AttributeName = displayText
Copy link
Contributor

Choose a reason for hiding this comment

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

http://imaginativethinking.ca/bi-directional-data-binding-qt-quick/

instead of onDisplayTextChanged signal it is better to do binding AttributeName = textField.text

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed for simple textChanged signal handling

@sklencar sklencar requested a review from PeterPetrik May 5, 2021 16:09
@PeterPetrik PeterPetrik merged commit adfd000 into master May 6, 2021
@PeterPetrik PeterPetrik deleted the 1334_uppercase_fix branch May 6, 2021 05:37
@jozef-budac
Copy link

Tried it with lastest APK and it works fine

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

Successfully merging this pull request may close these issues.

Upper case switch on automaticaly
4 participants