分页大小,恢复成原来6月8号前的老方法。新方法对于隐藏的行高获取有问题,导致下方空白
This commit is contained in:
parent
8bfedf3ef6
commit
23e8eae351
|
|
@ -594,31 +594,9 @@ void MainWindowCurve::vertScrollBarChanged(int iValue)
|
||||||
iHeightOfScreen = g_iHeight_MyCustom;
|
iHeightOfScreen = g_iHeight_MyCustom;
|
||||||
}
|
}
|
||||||
|
|
||||||
QRect rect2 = ui->centralwidget->geometry();
|
double dScrollHeight = (iHeightOfScreen-g_WorkSpace_Height)/g_dPixelPerCm/100.0 * (double)m_iScale;
|
||||||
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_setGeometry = iHeightOfScreen/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;
|
double dDelta = value - upper;
|
||||||
int iNumShow = dDelta/dScrollHeight;
|
int iNumShow = dDelta/dScrollHeight;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user