From da81be0e629664fb50964dc06f6e0837fa3d9d1c Mon Sep 17 00:00:00 2001 From: jiayulong Date: Fri, 3 Apr 2026 10:19:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=8C=89=E6=AF=94=E4=BE=8B?= =?UTF-8?q?=E7=BC=A9=E6=94=BE=E5=90=8E=E7=9A=84=E7=BB=98=E5=9B=BE=E5=8F=98?= =?UTF-8?q?=E5=BD=A2=E9=97=AE=E9=A2=98=EF=BC=8C=E5=8F=82=E7=85=A7=E9=81=93?= =?UTF-8?q?=E5=AE=BD=E6=94=B9=E5=8F=98=EF=BC=8C=E5=B2=A9=E6=80=A7=E3=80=81?= =?UTF-8?q?=E4=BA=95=E5=A3=81=E5=8F=96=E5=BF=83=E5=A4=96=E5=BD=A2=E4=B8=8D?= =?UTF-8?q?=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logPlus/formdraw.cpp | 3 +++ logPlus/qmycustomplot.cpp | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/logPlus/formdraw.cpp b/logPlus/formdraw.cpp index c9f47d4..fd157dd 100644 --- a/logPlus/formdraw.cpp +++ b/logPlus/formdraw.cpp @@ -3134,6 +3134,9 @@ void FormDraw::setRowHeight(double dHight, QProgressBar *progressBar, int iSplit //emit CallManage::getInstance()->sig_ChangeLeftScale(m_strUuid, form->m_strSlfName, m_strWellName, m_strTrackName, form->m_strLineName, form->m_iX1); + //比例改变后,避免井壁取心等组件变形,需要重新刷新 + form->resetPosition(); + form->replot();//屏蔽,缩减时间 } } diff --git a/logPlus/qmycustomplot.cpp b/logPlus/qmycustomplot.cpp index e759253..a97d3fd 100644 --- a/logPlus/qmycustomplot.cpp +++ b/logPlus/qmycustomplot.cpp @@ -9970,7 +9970,17 @@ void QMyCustomPlot::resetPosition_SwallCore() it++; // QCPRange tmpRange = pDraggableRect->getRange(); - pDraggableRect->setRange(tmpRange.lower, tmpRange.upper, false); + + //-------------------------- + // 设置初始范围 + double h = 32; + double Depth = tmpRange.lower; + double x1 = this->xAxis->coordToPixel(Depth); + double Depth2 = this->xAxis->pixelToCoord(x1-h); + //-------------------------- + + // + pDraggableRect->setRange(Depth, Depth2, false); } }