From 42b025d502e8fef6d71a4a9cd976a6d101accd50 Mon Sep 17 00:00:00 2001 From: crqiqi77 Date: Wed, 29 Apr 2026 17:49:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=B1=E5=BA=A6=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logPlus/formdraw.cpp | 4 ++-- logPlus/qmycustomplot.cpp | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/logPlus/formdraw.cpp b/logPlus/formdraw.cpp index a5d8431..b430a31 100644 --- a/logPlus/formdraw.cpp +++ b/logPlus/formdraw.cpp @@ -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); } } diff --git a/logPlus/qmycustomplot.cpp b/logPlus/qmycustomplot.cpp index 1ab30ad..10d2ae4 100644 --- a/logPlus/qmycustomplot.cpp +++ b/logPlus/qmycustomplot.cpp @@ -5374,11 +5374,15 @@ void QMyCustomPlot::s_changeDepthProperty(QVariantList vlist) { QFont newFont = varVal.value(); 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) {