From 7cc86237679809f55f7da01d9751eb7f4e10961e Mon Sep 17 00:00:00 2001 From: crqiqi77 Date: Tue, 24 Mar 2026 14:48:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=B1=E5=BA=A6=20=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logPlus/formdraw.cpp | 10 +++++----- logPlus/qmycustomplot.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/logPlus/formdraw.cpp b/logPlus/formdraw.cpp index 87e20dd..db84829 100644 --- a/logPlus/formdraw.cpp +++ b/logPlus/formdraw.cpp @@ -256,14 +256,14 @@ void FormDraw::setDrawData(QStringList listdt, QJsonObject objInfo) { case 0: // 偏左 - curv->m_yAxis3->setTickLabelPadding(5 + 10); + curv->m_yAxis3->setTickLabelPadding(5); break; case 1: // 居中 - curv->m_yAxis3->setTickLabelPadding(30 + 10); + curv->m_yAxis3->setTickLabelPadding(30); break; case 2: - curv->m_yAxis3->setTickLabelPadding(50 + 10); + curv->m_yAxis3->setTickLabelPadding(50); break; } // 海拔垂深位置 @@ -271,14 +271,14 @@ void FormDraw::setDrawData(QStringList listdt, QJsonObject objInfo) { case 0: // 偏左 - curv->m_yAxis2->setTickLabelPadding(5 + 10); + curv->m_yAxis2->setTickLabelPadding(5); break; case 1: // 居中 curv->m_yAxis2->setTickLabelPadding(30); break; case 2: - curv->m_yAxis2->setTickLabelPadding(50 + 10); + curv->m_yAxis2->setTickLabelPadding(50); break; } // 主刻度线长度 diff --git a/logPlus/qmycustomplot.h b/logPlus/qmycustomplot.h index fa6bfdd..8407bb3 100644 --- a/logPlus/qmycustomplot.h +++ b/logPlus/qmycustomplot.h @@ -310,7 +310,7 @@ public slots: public: void init(QString strName, QVector x, QVector y); - //岩心照片 + // 岩心照片 void addImageToPlot(double left_Low, double right_Hight, const QString imagePath); void addImageToPlot(double left_Low, double right_Hight, const QString imagePath, double left, double width); // left_Low底, right_Hight高 imagePath图片 left左边距 width宽 mBorderColor边框颜色、 mBorderStyle边框样式 mBorderWidth边框宽