From 23e8eae351c2db97413618dfc14555d3ab233977 Mon Sep 17 00:00:00 2001 From: jiayulong Date: Thu, 11 Jun 2026 14:53:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=A1=B5=E5=A4=A7=E5=B0=8F=EF=BC=8C?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E6=88=90=E5=8E=9F=E6=9D=A56=E6=9C=888?= =?UTF-8?q?=E5=8F=B7=E5=89=8D=E7=9A=84=E8=80=81=E6=96=B9=E6=B3=95=E3=80=82?= =?UTF-8?q?=E6=96=B0=E6=96=B9=E6=B3=95=E5=AF=B9=E4=BA=8E=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E7=9A=84=E8=A1=8C=E9=AB=98=E8=8E=B7=E5=8F=96=E6=9C=89=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E5=AF=BC=E8=87=B4=E4=B8=8B=E6=96=B9=E7=A9=BA?= =?UTF-8?q?=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logPlus/mainwindowcurve.cpp | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/logPlus/mainwindowcurve.cpp b/logPlus/mainwindowcurve.cpp index bb41165..8cfd3fd 100644 --- a/logPlus/mainwindowcurve.cpp +++ b/logPlus/mainwindowcurve.cpp @@ -594,31 +594,9 @@ void MainWindowCurve::vertScrollBarChanged(int iValue) iHeightOfScreen = g_iHeight_MyCustom; } - QRect rect2 = ui->centralwidget->geometry(); - int left, top, right, bottom; - if (ui->centralwidget->layout()) - { - ui->centralwidget->layout()->getContentsMargins(&left, &top, &right, &bottom); - } - //获取井well前2行的高度 - int iTableSize_Head = 0; - getTableSize_Head(iTableSize_Head); - int iTableWellTrack_height = ui->tableWidget_2->rowHeight(0) + (5) + iTableSize_Head -1; - //可视区域高度 - int iScreenHeight = 0; - //锁头 - if(m_fixwellsectionHeaderAc->isChecked()) - { - iScreenHeight = (double)(rect2.height()-10- top -bottom - iTableWellTrack_height)/g_dPixelPerCm * m_iScale; - } - else{ - iScreenHeight = (double)(rect2.height()-10- top -bottom - 4)/g_dPixelPerCm * m_iScale; - } - //double dScrollHeight = (iHeightOfScreen-g_WorkSpace_Height)/g_dPixelPerCm/100.0 * (double)m_iScale; + double dScrollHeight = (iHeightOfScreen-g_WorkSpace_Height)/g_dPixelPerCm/100.0 * (double)m_iScale; double dScrollHeight_setGeometry = iHeightOfScreen/g_dPixelPerCm/100.0 * (double)m_iScale; - double dScreenHeightMi = (double)iScreenHeight/100.0; - double dScrollHeight = dScrollHeight_setGeometry - dScreenHeightMi; // double dDelta = value - upper; int iNumShow = dDelta/dScrollHeight;