Fixes #578
Only made sure the code builds, not sure how to test.
Concept ACK.
As a preparation to Qt 6, I think this PR will benefit by incorporating of https://github.com/bitcoin/bitcoin/commit/f6adcadf643c3e3375d234ef0d0987f20bc9869b and https://github.com/bitcoin/bitcoin/commit/b649103d0554055470ea00cb46489c43c90796c9 in any reasonable way.
As a preparation to Qt 6, I think this PR will benefit by incorporating of bitcoin/bitcoin@f6adcad and bitcoin/bitcoin@b649103 in any reasonable way.
It seems the CI is failing because it does not recognize filterRegularExpression
and indeed it was introduced in Qt 5.12 while we still do support Qt 5.11.
I updated the second commit of the PR to use QT_VERSION
check - see 54980a7994a13fa77b80503ba8574490e80c9649
not sure how to test.
Here is a branch with tests for the AddressBookPage
class – https://github.com/hebasto/gui/commits/220423-test-ab
And test fails for the 54980a7994a13fa77b80503ba8574490e80c9649 commit.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviewers, this pull request conflicts with the following ones:
QRegularExpression
in AddressBookSortFilterProxyModel
class by hebasto)If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
43@@ -44,8 +44,7 @@ HelpMessageDialog::HelpMessageDialog(QWidget *parent, bool about) :
44 /// HTML-format the license message from the core
45 QString licenseInfoHTML = QString::fromStdString(LicenseInfo());
46 // Make URLs clickable
47- QRegExp uri("<(.*)>", Qt::CaseSensitive, QRegExp::RegExp2);
48- uri.setMinimal(true); // use non-greedy matching
49+ QRegularExpression uri("<(.*)>", QRegularExpression::InvertedGreedinessOption); // use non-greedy matching
QRegularExpression::InvertedGreedinessOption
is pretty self-explained.
46@@ -46,12 +47,19 @@ class AddressBookSortFilterProxyModel final : public QSortFilterProxyModel
47
48 auto address = model->index(row, AddressTableModel::Address, parent);
49
50+ #if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
🐙 This pull request conflicts with the target branch and needs rebase.
Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a “draft”.