| 80 | } |
| 81 | |
| 82 | void dpfservice::ProjectGenerator::doProjectOpen(const QString &kitName, |
| 83 | const QString &language, |
| 84 | const QString &workspace) |
| 85 | { |
| 86 | auto widget = configureWidget(language, workspace); |
| 87 | if (!widget) { |
| 88 | acceptConfigure(); |
| 89 | return; |
| 90 | } |
| 91 | |
| 92 | DDialog dialog; |
| 93 | dialog.setWindowTitle(tr("Config")); |
| 94 | dialog.setIcon(QIcon::fromTheme("ide")); |
| 95 | |
| 96 | dialog.addContent(widget); |
| 97 | dialog.addButtons({tr("Cancel"), tr("Confirm")}); |
| 98 | |
| 99 | if (dialog.exec() == QDialog::Accepted) |
| 100 | acceptConfigure(); |
| 101 | } |
| 102 | |
| 103 | /*! |
| 104 | * \brief configure 生成器配置界面,子类需要重载实现 |
no test coverage detected