52 QDesignerDialogGuiInterface *dlgui,
56 return dlgui->message(parent, QDesignerDialogGuiInterface::OtherMessage,
57 QMessageBox::Question, title, what,
58 QMessageBox::Yes|QMessageBox::No, QMessageBox::No) == QMessageBox::Yes;
78 QStringList existingProfileNames()
const;
79 void sortAndPopulateProfileCombo();
81 void updateDescriptionLabel();
83 QDesignerFormEditorInterface *m_core;
84 QComboBox *m_profileCombo;
85 QToolButton *m_addButton;
86 QToolButton *m_editButton;
87 QToolButton *m_deleteButton;
88 QLabel *m_descriptionLabel;
90 DeviceProfileList m_sortedProfiles;
92 QSet<QString> m_usedProfiles;
383 QWidget *optionsWidget =
new QWidget(parent);
385 QVBoxLayout *optionsVLayout =
new QVBoxLayout();
388 QGroupBox *gb =
new QGroupBox(QCoreApplication::translate(
"EmbeddedOptionsPage",
"Device Profiles"));
389 QVBoxLayout *gbVLayout =
new QVBoxLayout();
390 m_embeddedOptionsControl =
new EmbeddedOptionsControl(m_core);
391 m_embeddedOptionsControl->loadSettings();
392 gbVLayout->addWidget(m_embeddedOptionsControl);
393 gb->setLayout(gbVLayout);
394 optionsVLayout->addWidget(gb);
396 optionsVLayout->addStretch(1);
399 QHBoxLayout *optionsHLayout =
new QHBoxLayout();
400 optionsHLayout->addLayout(optionsVLayout);
401 optionsHLayout->addStretch(1);
402 optionsWidget->setLayout(optionsHLayout);
403 return optionsWidget;
QString name() const override