Skip to content

Commit

Permalink
cxx-qt: indicate in Threading trait that Locking is required
Browse files Browse the repository at this point in the history
  • Loading branch information
ahayzen-kdab committed Jun 9, 2023
1 parent 4a4efd1 commit 10e324c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cxx-qt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub trait Locking {
///
/// This trait is implemented by CxxQt automatically.
/// To enable this for a `qobject::T`, add `impl cxx_qt::Threading for qobject::T {}` to your [`#[cxx_qt::bridge]`](bridge).
pub trait Threading: Sized {
pub trait Threading: Locking + Sized {
#[doc(hidden)]
type BoxedQueuedFn;
#[doc(hidden)]
Expand Down

0 comments on commit 10e324c

Please sign in to comment.