Browse Source

修复链接问题

Signed-off-by: codeClown <zhaomengshou@126.com>
codeClown 1 year ago
parent
commit
a0a181a881
2 changed files with 5 additions and 3 deletions
  1. 1 1
      QFD/shemeFlow/FlowTemplateDataModel.h
  2. 4 2
      QFD/shemeFlow/ShemeFlowPanel.cpp

+ 1 - 1
QFD/shemeFlow/FlowTemplateDataModel.h

@@ -28,7 +28,7 @@ public:
 
     QString caption() const override { return QString("流程样板模型"); }
 
-    QString name() const override { return QString("FlowTemplateDataModel"); }
+    QString name() const override { return QString("FlowTemplateData"); }
 
     unsigned int nPorts(PortType const /*portType*/) const override { return 1; }
 

+ 4 - 2
QFD/shemeFlow/ShemeFlowPanel.cpp

@@ -91,7 +91,7 @@ static void setStyle_()
 ShemeFlowPanel::ShemeFlowPanel(QWidget *parent) : QWidget(parent)
 {
     setStyle_();
-#if 0
+#if 1
     DataFlowModel *graphModel = new DataFlowModel(registerDataModels());
 
     // Initialize and connect two nodes.
@@ -135,7 +135,7 @@ ShemeFlowPanel::ShemeFlowPanel(QWidget *parent) : QWidget(parent)
 
     this->setWindowTitle("Locked Nodes and Connections");
     this->resize(800, 600);
-#endif
+#else
 
     // Initialize and connect two nodes.
     {
@@ -169,4 +169,6 @@ ShemeFlowPanel::ShemeFlowPanel(QWidget *parent) : QWidget(parent)
 
     QHBoxLayout *l = new QHBoxLayout(this);
     l->addWidget(view);
+
+#endif
 }