17 QDialog(parentWidget),
18 m_ui(
new QT_PREPEND_NAMESPACE(Ui)::PreferencesDialog())
22 m_optionsPages = core->optionsPages();
24 m_ui->m_optionTabWidget->clear();
25 for (QDesignerOptionsPageInterface *optionsPage : std::as_const(m_optionsPages)) {
26 QWidget *page = optionsPage->createPage(
this);
27 m_ui->m_optionTabWidget->addTab(page, optionsPage->name());
28 if (QDesignerAppearanceOptionsWidget *appearanceWidget = qobject_cast<QDesignerAppearanceOptionsWidget *>(page))
29 connect(appearanceWidget, &QDesignerAppearanceOptionsWidget::uiModeChanged,
30 this, &PreferencesDialog::slotUiModeChanged);
33 connect(m_ui->m_dialogButtonBox, &QDialogButtonBox::rejected,
this, &PreferencesDialog::slotRejected);
34 connect(m_ui->m_dialogButtonBox, &QDialogButtonBox::accepted,
this, &PreferencesDialog::slotAccepted);
35 connect(applyButton(), &QAbstractButton::clicked,
this, &PreferencesDialog::slotApply);