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;