22 #include "audio/audio.h"
45 : QWidget(parent, Qt::Window)
52 setAttribute(Qt::WA_DeleteOnClose);
54 bodyLayout = std::unique_ptr<QVBoxLayout>(
new QVBoxLayout());
60 std::unique_ptr<GeneralForm> gfrm(
new GeneralForm(
this));
64 std::unique_ptr<PrivacyForm> pfrm(
new PrivacyForm(core));
67 AVForm* rawAvfrm =
new AVForm(audio, coreAV, camera, audioSettings, videoSettings);
68 std::unique_ptr<AVForm> avfrm(rawAvfrm);
69 std::unique_ptr<AdvancedForm> expfrm(
new AdvancedForm());
70 std::unique_ptr<AboutForm> abtfrm(
new AboutForm(updateCheck));
72 #if UPDATE_CHECK_ENABLED
73 if (updateCheck !=
nullptr) {
76 qWarning() <<
"SettingsWidget passed null UpdateCheck!";
80 cfgForms = {{std::move(gfrm), std::move(uifrm), std::move(pfrm), std::move(avfrm),
81 std::move(expfrm), std::move(abtfrm)}};
83 settingsWidgets->addTab(cfgForm.get(), cfgForm->getFormIcon(), cfgForm->getFormName());
136 for (
size_t i = 0; i <
cfgForms.size(); ++i)