From 8c7bf0fed076f801a5a40b31c0a6cfca66cd81f7 Mon Sep 17 00:00:00 2001 From: "DESKTOP-450PEFP\\mainc" Date: Tue, 28 Apr 2026 10:29:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=9A=90=E8=97=8F=E7=BD=91?= =?UTF-8?q?=E6=A0=BC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logPlus/formdraw.cpp | 24 ++---------------------- logPlus/logplus.vcxproj | 2 -- logPlus/logplus.vcxproj.filters | 6 ------ logPlus/qmycustomplot.h | 4 ++-- 4 files changed, 4 insertions(+), 32 deletions(-) diff --git a/logPlus/formdraw.cpp b/logPlus/formdraw.cpp index dfbeb8d..326bcb4 100644 --- a/logPlus/formdraw.cpp +++ b/logPlus/formdraw.cpp @@ -134,11 +134,6 @@ void FormDraw::setDrawData(QStringList listdt, QJsonObject objInfo) QMyCustomPlot *curv = new QMyCustomPlot(this, strSlfName, strWellName, m_strTrackName, strLineName); //绑定m_formTrack,方便关联formInfo curv->m_formTrack = m_formTrack; - if ("depthObject" == strType || "waveObject" == strType) - { - curv->m_bRowGridVisible = false; - curv->m_bColGridVisible = false; - } curv->setDepthY(m_iY1, m_iY2); curv->initGeometry(m_strUuid, m_iScale, dW); curv->show(); @@ -3020,8 +3015,6 @@ QMyCustomPlot* FormDraw::addTableLine(QString strUuid, QString strSlfName, QStri } else if (strLineName == "RESULT") { - curv->setRowGridVisible(false); - curv->setColGridVisible(false); //解释结论 initResult(curv, strSlfName, strLineName); } @@ -3057,8 +3050,6 @@ QMyCustomPlot* FormDraw::addTableLine(QString strUuid, QString strSlfName, QStri } else if (strLineName == "GUJING1_RESULT" || strLineName == "GUJING2_RESULT" || strLineName == "GUJING3_RESULT") { - curv->setRowGridVisible(false); - curv->setColGridVisible(false); //固井结论 if(listOtherProperty.size()>=3) { @@ -3346,8 +3337,6 @@ void FormDraw::s_addWave(QString strUuid, QString strSlfName, QString strWellNam QMyCustomPlot *curv = new QMyCustomPlot(this, strSlfName, strWellName, strTrackName, strWaveName); //绑定m_formTrack,方便关联formInfo curv->m_formTrack = m_formTrack; - curv->m_bRowGridVisible = false; - curv->m_bColGridVisible = false; curv->setDepthY(m_iY1, m_iY2); double nW = m_nTrackW; @@ -4418,8 +4407,6 @@ void FormDraw::initMCals(QMyCustomPlot *widget, QString strSlfName, QString strL widget->xAxis->grid()->setVisible(false); widget->yAxis->grid()->setVisible(false); // - widget->m_bRowGridVisible = false; - widget->m_bColGridVisible = false; //------------------- int iMyWidth = widget->axisRect(0)->width(); @@ -4698,7 +4685,8 @@ void FormDraw::initForm(QMyCustomPlot *widget, QString strSlfName, QString strLi //AppendConsole(PAI_INFO, "FormDraw initForm ReadCurve end"); widget->setInteractions(QCP::iSelectLegend | QCP::iSelectPlottables); - + widget->setRowGridVisible(true); + widget->setColGridVisible(true); widget->setScaleX(vmin, vmax); widget->setDepthY(m_iY1, m_iY2); widget->initGeometry(m_strUuid, m_iScale, g_iOneWidth); @@ -5253,8 +5241,6 @@ void FormDraw::initKedou(QMyCustomPlot *widget, QString strSlfName, QString strL widget->xAxis->grid()->setVisible(false); widget->yAxis->grid()->setVisible(false); // - widget->m_bRowGridVisible = false; - widget->m_bColGridVisible = false; int iMyWidth = widget->axisRect(0)->width(); float vmax = iMyWidth; @@ -5302,8 +5288,6 @@ void FormDraw::initGanzhuang(QMyCustomPlot *widget, QString strSlfName, QString widget->xAxis->grid()->setVisible(false); widget->yAxis->grid()->setVisible(false); // - widget->m_bRowGridVisible = false; - widget->m_bColGridVisible = false; int iMyWidth = widget->axisRect(0)->width(); float vmax = iMyWidth; @@ -5355,8 +5339,6 @@ void FormDraw::initJykt(QMyCustomPlot *widget, QString strSlfName, QString strLi widget->xAxis->grid()->setVisible(false); widget->yAxis->grid()->setVisible(false); // - widget->m_bRowGridVisible = false; - widget->m_bColGridVisible = false; //------------------- m_LeftVal = 0; @@ -5413,8 +5395,6 @@ void FormDraw::initDenv(QMyCustomPlot *widget, QString strSlfName, QString strLi widget->xAxis->grid()->setVisible(false); widget->yAxis->grid()->setVisible(false); // - widget->m_bRowGridVisible = false; - widget->m_bColGridVisible = false; //------------------- m_LeftVal = 0; diff --git a/logPlus/logplus.vcxproj b/logPlus/logplus.vcxproj index b85e2eb..fbe80be 100644 --- a/logPlus/logplus.vcxproj +++ b/logPlus/logplus.vcxproj @@ -12,7 +12,6 @@ - @@ -199,7 +198,6 @@ - diff --git a/logPlus/logplus.vcxproj.filters b/logPlus/logplus.vcxproj.filters index ba0d1cd..8b97628 100644 --- a/logPlus/logplus.vcxproj.filters +++ b/logPlus/logplus.vcxproj.filters @@ -313,9 +313,6 @@ Header Files - - Header Files - Header Files @@ -537,9 +534,6 @@ Source Files - - Source Files - libtiff\libtiff diff --git a/logPlus/qmycustomplot.h b/logPlus/qmycustomplot.h index 46bf45d..529b635 100644 --- a/logPlus/qmycustomplot.h +++ b/logPlus/qmycustomplot.h @@ -254,8 +254,8 @@ public: bool m_bFirstTimeConnect=true; //初次绑定编辑曲线信号槽。 bool m_bPriviewRightList=false; //当前是否正在预览曲线。 - bool m_bRowGridVisible = true; // 网格横轴是否显示 - bool m_bColGridVisible = true; // 网格纵轴是否显示 + bool m_bRowGridVisible = false; // 网格横轴是否显示 + bool m_bColGridVisible = false; // 网格纵轴是否显示 int m_nxiGrid = 1; // 细网格间隔 QPen m_xiPen; int m_nzhongGrid = 2; // 中网格间隔