Skip to content

Conversation

DonLakeFlyer
Copy link
Contributor

  • Add validation support to QGCTextField
    • Call QGCTextField.showValidationError/clearValidationError to set/clear
    • Validation error shown with red border and tooltip
  • Rework FactTextField to use new QGCTextField support
  • Validation errors tracked by count not bool: globals.validationErrorCount
  • New mainWindow.allowViewSwitch function to check whether view switch should be allowed
  • Fixed numerous problems with QGCPopupDialog with validation not being triggered correctly. As well as dialogs allowed to close with validation errors.

Related to #11994

* Add validation support to QGCTextField
* Rework FactTextField to use new QGCTextField support
* Validation errors tracked by count not bool: globals.validationErrorCount
* New mainWindow.allowViewSwitch function to check whether view switch should be allowed
@DonLakeFlyer
Copy link
Contributor Author

@HTRamsey Don't know if you want to review these detailed qml things? Would be good for sanity check but also don't want to waste your time. Previously most of the internal ui stuff had no reviewers.

@DonLakeFlyer DonLakeFlyer merged commit 18395d2 into master Oct 14, 2024
7 checks passed
@DonLakeFlyer DonLakeFlyer deleted the Validation branch October 14, 2024 16:44
@DonLakeFlyer
Copy link
Contributor Author

Merging so I can move on to the remaining fixes for #11994

@HTRamsey
Copy link
Collaborator

I'm not nearly as familiar with the QML code as I am the C++, but if there's something in particular I can always double check for you

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.

2 participants