From 7b3426acbbf3ccb3c33dd3fba83e1bbd4db82de1 Mon Sep 17 00:00:00 2001 From: jiayulong Date: Mon, 27 Apr 2026 09:03:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E5=9B=BE=E4=B8=80=E8=A1=A8=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E4=BA=95=E5=AE=BD=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logPlus/formdraw.cpp | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/logPlus/formdraw.cpp b/logPlus/formdraw.cpp index d1c67b0..fcf6508 100644 --- a/logPlus/formdraw.cpp +++ b/logPlus/formdraw.cpp @@ -3452,6 +3452,21 @@ void FormDraw::setColWidth(float fNewWidth) form->replot();//屏蔽,缩减时间 } } + else if(strObjName=="FormLine") + { + // + FormLine *form = (FormLine*)childWidget; + if(form) + { + int dHight = form->geometry().height(); + int ntmpw = m_nTrackW * g_dPixelPerCm; + if(ntmpw==0) + { + ntmpw = (g_iOneWidth*4)* g_dPixelPerCm; + } + form->setGeometry(form->geometry().x(), form->geometry().y(), ntmpw, (int)dHight); + } + } } i++; } @@ -4050,7 +4065,11 @@ FormLine* FormDraw::s_addSantuyibiao(QString strUuid, QString strSlfName, QStrin { dHight = 32767; } - int ntmpw = (g_iOneWidth * 4) * g_dPixelPerCm; + int ntmpw = m_nTrackW * g_dPixelPerCm; + if(ntmpw==0) + { + ntmpw = (g_iOneWidth*4)* g_dPixelPerCm; + } //curv->setGeometry(0, 0, ntmpw - 2, (int)dHight); curv->setGeometry(0, 0, ntmpw - 2, (int)32767);//斜井三图一表,固定最大值,方便上下滚动 curv->show();