Skip to content

Commit 1a579a7

Browse files
Montelahayzen-kdab
authored andcommitted
Add missing QStringList::replaceInStrings method
1 parent ffd346d commit 1a579a7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

crates/cxx-qt-lib/src/core/qstringlist.rs

+10
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ mod ffi {
3636

3737
/// Sorts the list of strings in ascending order.
3838
fn sort(self: &mut QStringList, cs: CaseSensitivity);
39+
40+
/// Returns a string list where every string has had the before text replaced with the after text wherever the before text is found.
41+
/// The before text is matched case-sensitively or not depending on the cs flag.
42+
#[rust_name = "replace_in_strings"]
43+
fn replaceInStrings(
44+
self: &mut QStringList,
45+
before: &QString,
46+
after: &QString,
47+
cs: CaseSensitivity,
48+
) -> &mut QStringList;
3949
}
4050

4151
#[namespace = "rust::cxxqtlib1"]

0 commit comments

Comments
 (0)