Skip to content

Commit

Permalink
COMP: Fix Qt4 ctkDICOMBrowser build error using QString instead of QS…
Browse files Browse the repository at this point in the history
…tringLiteral
  • Loading branch information
jcfr committed Nov 4, 2021
1 parent f4d3352 commit 6570866
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Libs/DICOM/Widgets/ctkDICOMBrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,11 @@ void ctkDICOMBrowser::exportSeries(QString dirPath, QStringList uids)
foreach (const QString& filePath, filesForSeries)
{
// File name example: my/destination/folder/000001.dcm
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
QString destinationFileName = QStringLiteral("%1%2.dcm").arg(destinationDir).arg(fileNumber, 6, 10, QLatin1Char('0'));
#else
QString destinationFileName = QString("%1%2.dcm").arg(destinationDir).arg(fileNumber, 6, 10, QLatin1Char('0'));
#endif

if (!QFile::exists(filePath))
{
Expand Down

0 comments on commit 6570866

Please sign in to comment.