diff --git a/logPlus/mainwindowcurve.cpp b/logPlus/mainwindowcurve.cpp index b1561b1..2f111c2 100644 --- a/logPlus/mainwindowcurve.cpp +++ b/logPlus/mainwindowcurve.cpp @@ -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()