![]() |
VR-Forces Developer's Guide
|
This document describes the public API changes in the vrfMakRadioQt library between VR-Forces 5.2 and 5.3.
It covers the following public header:
Changes that are internal to an implementation or limited to comments are not listed.
DtVrfAudioSettingsPage previously derived from makVrv::DtAudioSettingsPage. It now derives directly from makVrv::DtPage:
The constructor signature is unchanged, and the class is still registered through DtVrfAudioSettingsPageCreator, so code that only creates or registers the page is unaffected. Code that stored the page in a makVrv::DtAudioSettingsPage*, or that called methods declared on makVrv::DtAudioSettingsPage rather than on makVrv::DtPage, must be updated to use makVrv::DtPage* and the DtPage interface.
The header's include set changed accordingly. vrfAudioSettingsPage.h no longer includes vrvAudioQt/DtAudioSettingsPage.h or vrvAudioQt/DtAudioSettingsWidget.h; it includes vrvCoreQt/DtPage.h instead. Translation units that relied on those transitive includes must include them directly.
The class makVrf::DtVrfAudioSettingsWidget, which derived from makVrv::DtAudioSettingsWidget, was removed along with its constructor, its setAudioEnabled(bool) override, its protected slot_systemEnabledChanged(bool) slot, and its protected myDe member.
The page now owns a makRadio::DtRadioAudioSettingsWidget instead. There is no drop-in replacement for DtVrfAudioSettingsWidget: code that instantiated it, embedded it in another widget, or derived from it to override setAudioEnabled or slot_systemEnabledChanged must be reworked against makRadio::DtRadioAudioSettingsWidget, which is created and managed by DtVrfAudioSettingsPage.
Because the class now derives from makVrv::DtPage directly, it declares the page interface itself. These methods were previously inherited from makVrv::DtAudioSettingsPage:
Derived classes may override icon, qIconConfigurations, title, and pageClassName to customize presentation. thePageClassName returns the same identifier as pageClassName without requiring an instance, which is useful when looking the page up by class name.
Two protected members are available to derived classes:
myToolbar provides the save and reload controls for the current settings; myWidget is the settings widget that replaced DtVrfAudioSettingsWidget.
The default constructor, copy constructor, and copy assignment operator are now declared private and left unimplemented. Code that copied a DtVrfAudioSettingsPage will no longer compile; hold the page by pointer instead.
| Header | Breaking | Additions |
|---|---|---|
vrfAudioSettingsPage.h | DtVrfAudioSettingsPage base class changed to makVrv::DtPage; DtVrfAudioSettingsWidget removed; vrvAudioQt includes removed | DtPage interface overrides, thePageClassName, myToolbar and myWidget protected members |
Return to VR-Forces 5.3 API Migration Guide.
[Home]