v31.1-roots.1 · Commit 1: [PATCH 01/17] build(roots): establish v31 portability foundation
src/qt/addressbookpage.cpp
Before: src/qt/addressbookpage.cpp · After: src/qt/addressbookpage.cpp
File metadata
index aeeb5700dbb23630fafae89363f39cdb497e0657..428ee62270634288a6fb45a8aa5f946ffd20f9b4 100644
Download original patch · Release notes
Diff rows 1–11 of 11. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.
src/qt/addressbookpage.cpp
CHANGED
|
@@ -43,7 +43,11 @@ protected:
|
|
|
43
43
|
|
|
44
44
|
auto address = model->index(row, AddressTableModel::Address, parent);
|
|
45
45
|
|
|
46
|
+
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
|
46
47
|
const auto pattern = filterRegularExpression();
|
|
48
|
+
#else
|
|
49
|
+
const auto pattern = filterRegExp();
|
|
50
|
+
#endif
|
|
47
51
|
return (model->data(address).toString().contains(pattern) ||
|
|
48
52
|
model->data(label).toString().contains(pattern));
|
|
49
53
|
}
|