Page MenuHomePhabricator

qt: Use parent-child relation to manage lifetime of OptionsModel object
ClosedPublic

Authored by PiRK on Mon, Feb 22, 14:53.

Details

Summary

Both BitcoinApplication and OptionsModel classes are derived from the
QObject class, therefore a parent-child relation could be established to
manage the lifetime of an OptionsModel object.
This commit does not change behavior.

This is a backport of Core PR18424

Test Plan

ninja && src/bitcoin-qt

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.