This commit is contained in:
yangjiaxuan 2022-11-26 19:33:12 +08:00
commit fbd58b2713
1 changed files with 2 additions and 4 deletions

View File

@ -1017,8 +1017,7 @@ void MainWindow::on_new_image(void *img, int statu)
QString scanFileName;
while (1)
{
scanFileName = QString(tr("%1%2%3.%4")).arg(m_aquireIntoSaveParam.m_savePath)
.arg(m_aquireIntoSaveParam.m_fileNamePrefix)
scanFileName = m_aquireIntoSaveParam.m_savePath + m_aquireIntoSaveParam.m_fileNamePrefix + QString("%1.%2")
.arg(m_aquireIntoSaveParam.m_fileNameStartIndex, m_aquireIntoSaveParam.m_fileNameDigits, 10, QLatin1Char('0'))
.arg(m_aquireIntoSaveParam.m_fileNameExt);
QFileInfo fileInfo(scanFileName);
@ -1133,8 +1132,7 @@ void MainWindow::on_new_image(void *img, int statu)
QString scanFileName;
while (1)
{
scanFileName = QString(tr("%1%2%3.%4")).arg(savePath)
.arg(m_aquireIntoSaveParam.m_fileNamePrefix)
scanFileName = savePath + m_aquireIntoSaveParam.m_fileNamePrefix + QString("%1.%2")
.arg(m_aquireIntoSaveParam.m_fileNameStartIndex, m_aquireIntoSaveParam.m_fileNameDigits, 10, QLatin1Char('0'))
.arg(m_aquireIntoSaveParam.m_fileNameExt);
QFileInfo fileInfo(scanFileName);