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;