Compare commits

...

4 Commits

Author SHA1 Message Date
jiayulong
4ac77bf7ca 注释 2026-05-19 13:56:24 +08:00
jiayulong
f3255d6c18 Merge branch 'main' of http://git.hivekion.com:3000/jiayulong/logplus 2026-05-19 13:55:53 +08:00
jiayulong
b9c46c2ab9 Merge branch 'main' of http://git.hivekion.com:3000/jiayulong/logplus 2026-05-19 13:46:26 +08:00
jiayulong
036a18d083 模板加载视,不处理滚动条 2026-05-19 13:45:56 +08:00
2 changed files with 13 additions and 3 deletions

View File

@ -54,6 +54,8 @@ extern int g_iDebug;
//SmallPrint
extern int g_iSmallPrint;
int g_iLoadingJson = 0;
MainWindowCurve::MainWindowCurve(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindowCurve)
@ -4655,8 +4657,12 @@ void MainWindowCurve::Open(QString fileFull)
if (value.isArray()) {
wellsArray = value.toArray();
qDebug() << "wellsArray number:" << QString::number(wellsArray.size());
//是否正在加载json
g_iLoadingJson = 1;
//展示所有井
DisplayWells(wellsArray);
g_iLoadingJson = 0;
}
}
//

View File

@ -36,6 +36,7 @@ extern double g_dPixelPerCm;//每厘米像素数
extern double g_SDepthFac;
extern double g_EDepthFac;
extern QString g_SelectMFac;
extern int g_iLoadingJson;
QMyCustomPlot::QMyCustomPlot(QWidget *parent, QString strSlfName, QString strWellName, QString strTrackName, QString strLineName, QString strType) :
QCustomPlot(parent)
@ -273,9 +274,12 @@ void QMyCustomPlot::initGeometry(QString strUuid, int nscale, double fW)
int ntmpw = fW * g_dPixelPerCm;
this->setGeometry(0, 0, ntmpw - 2, (int)dHight);
if(g_iLoadingJson==0)//针对模板加载,不处理滚动条,避免多次冲突
{
//修改滚动条,针对新建的
emit CallManage::getInstance()->sig_changeScrollBar(m_strUuid);
}
}
void QMyCustomPlot::changePropertyWaveUpdate()
{
@ -12453,7 +12457,7 @@ void QMyCustomPlot::drawDipAngle(double centerX, double centerY, float ifdir[360
for (int i = 0; i < lineNumber; ++i)
{
double currY = startX - i * step;
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 核心每个刻度单独计算长度和你GDI完全一样每个长度不同
//核心每个刻度单独计算长度和你GDI完全一样每个长度不同
double dynamicLen = 0.1 * ifdir[i] / dirmax + lineHeight;
QCPItemLine *scaleLine = new QCPItemLine(this);