-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[cpp-qt-client] Qt progress info #18950
Conversation
Use stable 4-parameter connect
This reverts commit 1d4e78a.
Remark for step 3: I work on Windows where all touched files get the CR/LF which results in too many changed files. So please take over the changes. FYI: @ravinikam (2017/07) @stkrwork (2017/07) @etherealjoy (2018/02) @MartinDelille (2018/03) @muttleyxd (2019/08) |
thanks for the PR. I've filed #18956 with updated samples (some tabs are replaced with 4-space) but some CI tests failed: https://github.com/OpenAPITools/openapi-generator/actions/runs/9558830005/job/26348400169?pr=18956 Does this change work with Qt 5.x? |
Would be mystic if not. You already have similar code in api-body:677 |
Removed additional changes from other PullRequest
I ran step 3 from a linux vm to complete this. |
I tested the changes in a local old build of our source. It builds without errors using these changes under Qt 5.15.2 on Windows platform. |
I'm not quite sure this works correctly:
As I'm not the mustache specialist what do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't test it but it makes sense!
…o all regions where execution finish is connected
I added the downloadProgress to the parts where the request-finished is connected. But it looks a bit odd in the generated code of the examples. According to the names of the pet examples it seems to make sense to add the progress info only to
|
I changed this PR to draft until this is discussed. |
yes, you can add an option to do so. #18072 (for C client) is a good reference PR as a starting point. |
That's a huge change, can you please point me to that option? What's its name? |
https://github.com/OpenAPITools/openapi-generator/pull/18072/files#diff-650ea35dcd5ff1dee971a524e6c1e7f1d538319357fa079c54e0a9b949fbdb92R313 to add an cli option https://github.com/OpenAPITools/openapi-generator/pull/18072/files#diff-650ea35dcd5ff1dee971a524e6c1e7f1d538319357fa079c54e0a9b949fbdb92R325 to process it in additional properties https://github.com/OpenAPITools/openapi-generator/pull/18072/files#diff-e5916826f6d19371fe33e8a59d2bf7a825844bc77253255ddbe69ae8c56d5cedR323 to use it in the template to make your life easier, can you please wrap the new code block for Qt progress info in the template with i'll then take care of the rest |
This should be right now:
|
that test has been removed from master can you please pull the latest master into your branch when you've time? |
@wing328 same here: could you restart the ci by hand ? |
cpp qt tests with the download progress option enabled passed via #19292 |
thanks for the PR. will add an option with a separate PR later. |
You're welcome :-) |
When downloading larger files via the generated API I miss a possibility to get the download progress. This could be achieved by connecting to the signal QNetworkReply::downloadProgress. This is solution 1 of the request: #18926
PR checklist
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*
.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
master
(upcoming 7.6.0 minor release - breaking changes with fallbacks),8.0.x
(breaking changes without fallbacks)