HomePhabricator

qt: Do not assume `qDBusRegisterMetaType` return type

Description

qt: Do not assume qDBusRegisterMetaType return type

Summary:
qDBusRegisterMetaType returns:

  • int in Qt 5
  • QMetaType in Qt 6

This is a backport of core#584
Depends on D18140

Test Plan:
ninja all check-all

Not sure how to trigger that code path interactively. The change is probably trivial enough to assume it just works (we just inlined an unnecessary wrapper function).

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D18141

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Apr 13 2022, 16:15
PiRKCommitted on May 26 2025, 09:53
PiRKPushed on May 26 2025, 09:53
Reviewer
Restricted Project
Differential Revision
D18141: qt: Do not assume `qDBusRegisterMetaType` return type
Parents
rABCc0960d91959f: qt: Do not use `QKeyEvent` copy constructor
Branches
Unknown
Tags
Unknown