diff --git a/HPPA/HPPA.cpp b/HPPA/HPPA.cpp
index 15abd71..18ada9a 100644
--- a/HPPA/HPPA.cpp
+++ b/HPPA/HPPA.cpp
@@ -107,6 +107,7 @@ HPPA::HPPA(QWidget* parent)
initPanelToolbar();
setDockNestingEnabled(true);
+ connect(this->ui.mSetting, SIGNAL(triggered()), this, SLOT(settingWindow()));
connect(this->ui.action_about, SIGNAL(triggered()), this, SLOT(onAbout()));
connect(this->ui.mActionOneMotorScenario, SIGNAL(triggered()), this, SLOT(createOneMotorScenario()));
connect(this->ui.mActionPlantPhenotypeScenario, SIGNAL(triggered()), this, SLOT(createPlantPhenotypeScenario()));
@@ -1954,6 +1955,13 @@ void HPPA::onAbout()
about.exec();
}
+void HPPA::settingWindow()
+{
+ setWindow w;
+ w.show();
+ w.exec();
+}
+
void HPPA::onDark()
{
QMessageBox msgBox;
diff --git a/HPPA/HPPA.h b/HPPA/HPPA.h
index 2492ed7..395b4c0 100644
--- a/HPPA/HPPA.h
+++ b/HPPA/HPPA.h
@@ -73,6 +73,8 @@
#include "recordFrameCounter.h"
+#include "setWindow.h"
+
#define PI 3.1415926
QT_CHARTS_USE_NAMESPACE//QChartView 使用 需要加宏, 否则无法使用
@@ -313,6 +315,7 @@ public Q_SLOTS:
void onFocus2(int command);
void onFocusWindowClosed();
void onAbout();
+ void settingWindow();
void onDark();
void recordDarkFinish();
void onReference();
diff --git a/HPPA/HPPA.ui b/HPPA/HPPA.ui
index b536069..094d598 100644
--- a/HPPA/HPPA.ui
+++ b/HPPA/HPPA.ui
@@ -72,7 +72,7 @@ color:white;
-
+