锁头切换后居中显示

This commit is contained in:
jiayulong 2026-06-24 15:59:05 +08:00
parent 843c819611
commit ca7bdc2ae5

View File

@ -5242,7 +5242,9 @@ void MainWindowCurve::s_showHeadTable()
ui->verticalScrollBar->setRange(-m_iY2*100, -m_iY1*100 - iScreenHeight + iHScrollBarHeight);
ui->verticalScrollBar->setValue(-m_iY2*100);
//QMessageBox::information(NULL,"提示","锁头完成!",QMessageBox::Ok);
QMessageBox::information(NULL,"提示","锁头完成!",QMessageBox::Ok);
//居中
emit sig_resizeWindow();
}
else {
//第一次显示判断是否从json加载
@ -5313,14 +5315,13 @@ void MainWindowCurve::s_showHeadTable()
ui->verticalScrollBar->setRange(-m_iY2*100, -m_iY1*100 - iScreenHeight + iHScrollBarHeight);
ui->verticalScrollBar->setValue(-m_iY2*100);
//QMessageBox::information(NULL,"提示","锁头取消!",QMessageBox::Ok);
//QMessageBox::information(NULL,"提示","锁头取消!",QMessageBox::Ok);
}
double topDep = getVisibleTopDepth();
m_dBottomDepth = this->getVisibleBottomDepth();
emit CallManage::getInstance()->sig_ResizeDepth(m_strUuid, m_nObjDrawH, topDep, m_dBottomDepth);
}
QJsonObject MainWindowCurve::makeJson()