From b67acd95138074df01f9eb3b112053241fd6ecb0 Mon Sep 17 00:00:00 2001 From: jiayulong Date: Wed, 15 Apr 2026 17:26:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BA=95=E5=A3=81=E5=8F=96?= =?UTF-8?q?=E5=BF=83=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logPlus/TransparentDraggableSwallCore.cpp | 3 +++ logPlus/qmycustomplot.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/logPlus/TransparentDraggableSwallCore.cpp b/logPlus/TransparentDraggableSwallCore.cpp index 4ea1943..a6801e9 100644 --- a/logPlus/TransparentDraggableSwallCore.cpp +++ b/logPlus/TransparentDraggableSwallCore.cpp @@ -14,6 +14,9 @@ TransparentDraggableSwallCore::TransparentDraggableSwallCore(QMyCustomPlot *pare double h = SideWallCoreHeight * g_dPixelPerCm; //0.4cm //40; m_fImageHeight = h/2.0; + m_fTriangleLen = h/2.0;//三角形长度 + m_fImageWidth = (m_fTriangleLen-1) * 3;//图片长度 + m_fColorWordLen = (m_fTriangleLen-1) * 2;//颜色文字长度 // initRect(); } diff --git a/logPlus/qmycustomplot.h b/logPlus/qmycustomplot.h index af1caec..02d0a7c 100644 --- a/logPlus/qmycustomplot.h +++ b/logPlus/qmycustomplot.h @@ -13,7 +13,7 @@ const int iFracType=15; // #define SideWallCoreWidth 1.2 -#define SideWallCoreHeight 0.5 +#define SideWallCoreHeight 0.4 struct Slf_TxtPOS { int Order;