chengxr hace 1 año
padre
commit
b3fef11007
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 1 1
      QFD/widgets/SchemeFlowWidget.cpp
  2. 2 1
      QFD/widgets/SchemePlanWidget.cpp

+ 1 - 1
QFD/widgets/SchemeFlowWidget.cpp

@@ -119,7 +119,7 @@ void SchemeFlowWidget::loadSchemes(const QList<SchemePlanManager::SchemeProcessI
     clearAllNodes();
 
     int y            = 0;   // 流程图节点位置
-    int space        = 50;  // 流程图节点间距
+    int space        = 30;  // 流程图节点间距
     NodeId invalidId = 999;
     NodeId lastId    = invalidId;
 

+ 2 - 1
QFD/widgets/SchemePlanWidget.cpp

@@ -34,6 +34,7 @@ void SchemePlanWidget::setupUI()
     m_export->setEnabled(false);
     m_topLayout->addWidget(m_export);
     m_topLayout->addSpacing(10);
+    m_export->setHidden(true);
 
     connect(m_export, &PushButton::clicked, this, &SchemePlanWidget::slotExportClicked);
 }
@@ -91,7 +92,7 @@ void SchemePlanWidget::setupTabWidget()
         connect(m, &SchemeFlowWidget::sigSchemeProcessEdited, this, &SchemePlanWidget::slotSchemeProcessEdited);
 
         QList<SchemePlanManager::SchemeProcessInfo> schemes;
-        bool ret = SchemeProcessService().QueryAllByProjectIdAndIndexType(schemes);
+        bool ret = SchemeProcessService().QueryAllByProjectIdAndIndexType(schemes, m_proj->id, i);
         if (ret && schemes.count() <= 1) {
             schemes = templateSchemes(m_proj->id, i);
         }