Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions crates/cxx-qt-lib/src/core/qanystringview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ impl<'a> From<&'a str> for QAnyStringView<'a> {
}
}

impl<'a> From<&'a String> for QAnyStringView<'a> {
/// Constructs a QAnyStringView from a &String
fn from(string: &'a String) -> Self {
string.as_str().into()
}
}

impl From<&QString> for QAnyStringView<'_> {
/// Constructs a QAnyStringView from a QString
fn from(string: &QString) -> Self {
Expand Down
Loading