diff --git a/src/plugins/template/wizard/maindialog.cpp b/src/plugins/template/wizard/maindialog.cpp index 066dd58a7..fe879b721 100644 --- a/src/plugins/template/wizard/maindialog.cpp +++ b/src/plugins/template/wizard/maindialog.cpp @@ -14,12 +14,13 @@ #include #include #include -#include +#include +#include + #include #include #include #include -#include DWIDGET_USE_NAMESPACE using namespace dpfservice; @@ -28,7 +29,7 @@ class MainDialogPrivate { friend class MainDialog; QMap detailWidgetMap; - QStackedWidget *detailStackedWidget = nullptr; + DStackedWidget *detailStackedWidget = nullptr; DWidget *blankWidget = nullptr; }; @@ -59,7 +60,7 @@ void MainDialog::setupUI(TemplateVector &templateVec) DLabel *title = new DLabel(tr("Choose a template:")); - d->detailStackedWidget = new QStackedWidget(); + d->detailStackedWidget = new DStackedWidget(); d->blankWidget = new DetailWidget(this); d->detailStackedWidget->addWidget(d->blankWidget); @@ -74,17 +75,17 @@ void MainDialog::setupUI(TemplateVector &templateVec) QStandardItem * rootItem = standardModel->invisibleRootItem(); for (auto iterTpl = templateVec.begin(); iterTpl != templateVec.end(); ++iterTpl) { - QStandardItem *tpl = new QStandardItem(iterTpl->category); + DStandardItem *tpl = new DStandardItem(iterTpl->category); rootItem->appendRow(tpl); QVector tplVec = iterTpl->templateVec; for (auto iterCate = tplVec.begin(); iterCate != tplVec.end(); ++iterCate) { - QStandardItem *typeItem = new QStandardItem(iterCate->type); + DStandardItem *typeItem = new DStandardItem(iterCate->type); tpl->appendRow(typeItem); auto iterDetail = iterCate->templateVec.begin(); for (; iterDetail != iterCate->templateVec.end(); ++iterDetail) { - QStandardItem *detailItem = new QStandardItem(iterDetail->name); + DStandardItem *detailItem = new DStandardItem(iterDetail->name); TemplateDetail detail; detail.name = iterDetail->name; detail.path = iterDetail->path;