三图一表支持井宽设置

This commit is contained in:
jiayulong 2026-04-27 09:03:05 +08:00
parent 174d7c6346
commit 7b3426acbb

View File

@ -3452,6 +3452,21 @@ void FormDraw::setColWidth(float fNewWidth)
form->replot();//屏蔽,缩减时间 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++; i++;
} }
@ -4050,7 +4065,11 @@ FormLine* FormDraw::s_addSantuyibiao(QString strUuid, QString strSlfName, QStrin
{ {
dHight = 32767; 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)dHight);
curv->setGeometry(0, 0, ntmpw - 2, (int)32767);//斜井三图一表,固定最大值,方便上下滚动 curv->setGeometry(0, 0, ntmpw - 2, (int)32767);//斜井三图一表,固定最大值,方便上下滚动
curv->show(); curv->show();