HomePhabricator

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

Description

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

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

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

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

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Mar 24 2020, 19:16
PiRKCommitted on Feb 23 2021, 07:20
PiRKPushed on Feb 23 2021, 07:20
Reviewer
Restricted Project
Differential Revision
D9255: qt: Use parent-child relation to manage lifetime of OptionsModel object
Parents
rABCcc5de5b703da: [Cashtab] Enable special features if wallet has specific eToken
Branches
Unknown
Tags
Unknown