51 QDesignerDialogGuiInterface *dlgui,
55 return dlgui->message(parent, QDesignerDialogGuiInterface::OtherMessage,
56 QMessageBox::Question, title, what,
57 QMessageBox::Yes|QMessageBox::No, QMessageBox::No) == QMessageBox::Yes;
77 QStringList existingProfileNames()
const;
78 void sortAndPopulateProfileCombo();
80 void updateDescriptionLabel();
82 QDesignerFormEditorInterface *m_core;
83 QComboBox *m_profileCombo;
84 QToolButton *m_addButton;
85 QToolButton *m_editButton;
86 QToolButton *m_deleteButton;
87 QLabel *m_descriptionLabel;
89 DeviceProfileList m_sortedProfiles;
91 QSet<QString> m_usedProfiles;
382 QWidget *optionsWidget =
new QWidget(parent);
384 QVBoxLayout *optionsVLayout =
new QVBoxLayout();
387 QGroupBox *gb =
new QGroupBox(QCoreApplication::translate(
"EmbeddedOptionsPage",
"Device Profiles"));
388 QVBoxLayout *gbVLayout =
new QVBoxLayout();
389 m_embeddedOptionsControl =
new EmbeddedOptionsControl(m_core);
390 m_embeddedOptionsControl->loadSettings();
391 gbVLayout->addWidget(m_embeddedOptionsControl);
392 gb->setLayout(gbVLayout);
393 optionsVLayout->addWidget(gb);
395 optionsVLayout->addStretch(1);
398 QHBoxLayout *optionsHLayout =
new QHBoxLayout();
399 optionsHLayout->addLayout(optionsVLayout);
400 optionsHLayout->addStretch(1);
401 optionsWidget->setLayout(optionsHLayout);
402 return optionsWidget;
QString name() const override