优化出图的位置
This commit is contained in:
parent
a654d5a9a9
commit
e51bac0b09
|
|
@ -12542,8 +12542,8 @@ void QMyCustomPlot::vertScrollBarChanged_setGeometry(QString strUuid, double val
|
|||
double dDelta = value; //- upper
|
||||
double dPercent = dDelta / (low-upper);
|
||||
|
||||
//move(geoRect.x(), -(dPercent*geoRect.height()));
|
||||
setGeometry(geoRect.x(), -(dPercent*geoRect.height()), geoRect.width(), geoRect.height());
|
||||
//move(0, -(dPercent*geoRect.height()));
|
||||
setGeometry(0, -(dPercent*geoRect.height()), geoRect.width(), geoRect.height());
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -12558,7 +12558,7 @@ void QMyCustomPlot::vertScrollBarChanged(QString strUuid, double value, double l
|
|||
return;
|
||||
}
|
||||
QRect geoRect = geometry();
|
||||
setGeometry(geoRect.x(), geoRect.y(), geoRect.width(), geoRect.height());
|
||||
setGeometry(0, 0, geoRect.width(), geoRect.height());
|
||||
|
||||
//
|
||||
FormInfo* pInfo = m_formTrack->getFormInfoByParameters(m_strUuid, m_strWellName, m_strTrackName, m_strLineName);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user