深度属性

This commit is contained in:
crqiqi77 2026-04-29 17:49:57 +08:00
parent 83c298e8fe
commit 42b025d502
2 changed files with 6 additions and 2 deletions

View File

@ -5959,9 +5959,9 @@ void FormDraw::initDepth(QMyCustomPlot *curv)
curv->axisRect()->addAxis(QCPAxis::atLeft, curv->m_yAxis2);
curv->m_yAxis2->setRange(0, 100);
curv->m_yAxis2->setOffset(40);
curv->m_yAxis2->setTickLabelPadding(10);
curv->m_yAxis2->ticker()->setTickCount(60);
curv->m_yAxis2->setTickLabelPadding(5);
curv->m_yAxis2->setTickLabelFont(font1);
}
if(!curv->m_yAxis3)
{
@ -5969,9 +5969,9 @@ void FormDraw::initDepth(QMyCustomPlot *curv)
curv->axisRect()->addAxis(QCPAxis::atLeft, curv->m_yAxis3);
curv->m_yAxis3->setRange(0, 100);
curv->m_yAxis3->setOffset(40);
curv->m_yAxis3->setTickLabelPadding(10);
curv->m_yAxis3->ticker()->setTickCount(60);
curv->m_yAxis3->setTickLabelPadding(5);
curv->m_yAxis3->setTickLabelFont(font1);
}
}

View File

@ -5374,11 +5374,15 @@ void QMyCustomPlot::s_changeDepthProperty(QVariantList vlist)
{
QFont newFont = varVal.value<QFont>();
this->yAxis->setTickLabelFont(newFont);
this->m_yAxis2->setTickLabelFont(newFont);
this->m_yAxis3->setTickLabelFont(newFont);
}
else if ("旋转(°)" == strProperty)
{
double temp = varVal.toDouble();
this->yAxis->setTickLabelRotation(temp);
this->m_yAxis2->setTickLabelRotation(temp);
this->m_yAxis3->setTickLabelRotation(temp);
}
else if ("斜深" == strProperty)
{