Page MenuHomePhabricator

qt6, test: Handle deprecated code
ClosedPublic

Authored by PiRK on Jun 4 2025, 08:42.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC10e8feea4ccd: qt6, test: Handle deprecated code
Summary

qt6, test: Use qWarning() instead of QWARN() macro

The QWARN() macro internally uses QTest::qWarn(), which has been
deprecated since Qt 6.3. Replacing it with qWarning() ensures
compatibility across all Qt versions.

qt6, test: Handle deprecated QVERIFY_EXCEPTION_THROWN

This change ensures compatibility across all supported Qt versions.

Co-Authored-By: João Barbosa <joao.paulo.barbosa@gmail.com>

This is a backport of core-gui#839
Depends on D18199

Test Plan

ninja check
With Qt6.4, verify the lack of deprecation warnings when compiling

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Jun 4 2025, 08:42
src/qt/test/test_main.cpp
69–72 ↗(On Diff #54329)

added in core#27302
It doesn't hurt to add it here as well, even without the actual bugfix from the PR

This revision is now accepted and ready to land.Jun 4 2025, 11:18