Skip to content

[ui] Application: fix save-as dialog not working properly (Qt6.7+)#2683

Merged
cbentejac merged 1 commit into
developfrom
fix/qmlInvalidTyping
Feb 24, 2025
Merged

[ui] Application: fix save-as dialog not working properly (Qt6.7+)#2683
cbentejac merged 1 commit into
developfrom
fix/qmlInvalidTyping

Conversation

@yann-lty

Copy link
Copy Markdown
Member

Description

Since Qt 6.7, JS type annotations are enforced at runtime (see https://doc.qt.io/qt-6/qtqml-javascript-hostenvironment.html#type-annotations-and-assertions).
This PR removes a problematic annotation typing that is breaking the SaveAs file dialog.

Features list

  • Fix SaveAs dialog for Qt 6.7+.

Implementation remarks

Typing the sourceSaveDialog in validateFilepathForSave as Dialog (or Platform.FileDialog) breaks the value received by the function and its behavior.

Since Qt 6.7, type annotations are enforced at runtime.
Typing the `sourceSaveDialog` as Dialog (or Platform.FileDialog) breaks the value received by the function and its behavior.
@codecov

codecov Bot commented Feb 21, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.79%. Comparing base (8ee7b50) to head (cdb25e2).
Report is 2 commits behind head on develop.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2683   +/-   ##
========================================
  Coverage    72.79%   72.79%           
========================================
  Files          129      129           
  Lines         7753     7753           
========================================
  Hits          5644     5644           
  Misses        2109     2109           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cbentejac cbentejac added this to the Meshroom 2025.1.0 milestone Feb 24, 2025
@cbentejac cbentejac merged commit 6bdf50a into develop Feb 24, 2025
@cbentejac cbentejac deleted the fix/qmlInvalidTyping branch February 24, 2025 13:21
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