深度的属性

This commit is contained in:
crqiqi77 2026-03-24 11:10:09 +08:00
parent 519fdf10b0
commit d60b9b6330
2 changed files with 7 additions and 21 deletions

View File

@ -186,24 +186,10 @@ void FormDraw::setDrawData(QStringList listdt, QJsonObject objInfo)
// 读取json // 读取json
// 设置左侧显示属性 设置界面样式 // 设置左侧显示属性 设置界面样式
// if(pInfo->m_strUnit.isEmpty()){ if(pInfo->m_strUnit.isEmpty()){
// pInfo->m_strUnit = "(米)"; pInfo->m_strUnit = "(米)";
// pInfo->m_strUnitFont = QFont("微软雅黑", 16); pInfo->m_strUnitFont = QFont("微软雅黑", 10);
// } }
// bool m_sdDrawStartDepth; // 绘制起点深度
// bool m_sdDrawEndDepth; // 绘制终点深度
// int m_sdMajorTickLineLength = 3; // 主刻度线长度
// int m_sdMajorTickLineWidth = 1; // 主刻度线宽度
// int m_sdMinorTickLineLength = 1; // 次刻度线长度
// int m_sdMinorTickLineWidth = 1; // 次刻度线宽度
initDepth(curv); initDepth(curv);
// 读json后 重新设置样式 // 读json后 重新设置样式
// 头部高度 // 头部高度

View File

@ -81,8 +81,8 @@ public:
QString m_strTrackName; QString m_strTrackName;
QString m_strLineName; QString m_strLineName;
QString m_strAliasName;//显示名称 QString m_strAliasName;//显示名称
QString m_strUnit;//单位 QString m_strUnit = "(米)";//单位
QFont m_strUnitFont;//单位字体 QFont m_strUnitFont = QFont("微软雅黑", 10);//单位字体
// 头部高度 // 头部高度
int m_headHeight = 100; int m_headHeight = 100;
@ -198,7 +198,7 @@ public:
// 深度 // 深度
QColor m_sdRulerColor; // 标尺颜色 QColor m_sdRulerColor; // 标尺颜色
double m_sdInterval = 20; // 间隔 double m_sdInterval = 20; // 间隔
QFont m_sdLabelFont = QFont("微软雅黑", 16); // 标注字体 QFont m_sdLabelFont = QFont("微软雅黑", 10); // 标注字体
double m_sdRotationAngle = 0.0; // 旋转(°) double m_sdRotationAngle = 0.0; // 旋转(°)
bool m_sdDrawStartDepth; // 绘制起点深度 bool m_sdDrawStartDepth; // 绘制起点深度
bool m_sdDrawEndDepth; // 绘制终点深度 bool m_sdDrawEndDepth; // 绘制终点深度