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

cxx-qt-lib: Add bindings for QMessageLogContext and qt_message_output #814

Merged
merged 2 commits into from
Mar 5, 2025

Conversation

redstrate
Copy link
Contributor

This allows Rust and CXX-Qt applications to send messages to the Qt logger.

@redstrate redstrate self-assigned this Jan 17, 2024
@redstrate redstrate marked this pull request as draft January 17, 2024 19:10
@Montel
Copy link
Contributor

Montel commented Jan 18, 2024

Hi,
could you add info in CHANGELOG file please ?
Thanks

@redstrate redstrate marked this pull request as ready for review February 11, 2024 19:13
Copy link
Collaborator

@LeonMatthesKDAB LeonMatthesKDAB left a comment

Choose a reason for hiding this comment

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

Good first pass, unfortunately the lifetimes need sorting out.

@redstrate redstrate force-pushed the wip/josh/qtlogging branch 6 times, most recently from 40efe50 to 7dc5dbb Compare August 11, 2024 14:55
Copy link

codecov bot commented Dec 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (e3964d4) to head (74c54d1).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #814   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           73        73           
  Lines        12527     12527           
=========================================
  Hits         12527     12527           

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

@redstrate redstrate force-pushed the wip/josh/qtlogging branch 4 times, most recently from d204d89 to 9e0cd75 Compare December 31, 2024 15:12
Copy link
Collaborator

@LeonMatthesKDAB LeonMatthesKDAB left a comment

Choose a reason for hiding this comment

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

The lifetimes are tricky to get right here and still need sorting out.

I also unresolved my two previous comments as both still need more work unfortunately.

@redstrate redstrate force-pushed the wip/josh/qtlogging branch 2 times, most recently from 61dc340 to 6b03a11 Compare January 10, 2025 18:00
Copy link
Collaborator

@LeonMatthesKDAB LeonMatthesKDAB left a comment

Choose a reason for hiding this comment

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

I'm pretty happy with this PR now.
Having static_assertions would be a plus. Waiting for opinion from @ahayzen-kdab there.

@redstrate redstrate force-pushed the wip/josh/qtlogging branch 2 times, most recently from 438b6c4 to 7326ea0 Compare January 15, 2025 14:15
@redstrate redstrate changed the title Add bindings for QtMsgType, QMessageLogContext and qt_message_output cxx-qt-lib: Add bindings for QMessageLogContext and qt_message_output Jan 15, 2025
Copy link
Collaborator

@LeonMatthesKDAB LeonMatthesKDAB left a comment

Choose a reason for hiding this comment

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

LGTM, @redstrate please rebase, then we can merge.

@redstrate
Copy link
Contributor Author

LGTM, @redstrate please rebase, then we can merge.

Have the time now, done

@redstrate redstrate force-pushed the wip/josh/qtlogging branch 2 times, most recently from 167ca92 to 72d087b Compare March 3, 2025 18:19
This allows Rust and CXX-Qt applications to send messages to the Qt
logger.
This is needed to ensure the Rust-side QMessageLogContext struct has the
expected size.
@redstrate redstrate force-pushed the wip/josh/qtlogging branch from 72d087b to 74c54d1 Compare March 5, 2025 09:48
@LeonMatthesKDAB LeonMatthesKDAB merged commit e30646e into main Mar 5, 2025
16 checks passed
@LeonMatthesKDAB LeonMatthesKDAB deleted the wip/josh/qtlogging branch March 5, 2025 12:36
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.

4 participants