Skip to content

Commit

Permalink
Revert "fix qstring-ref warnings"
Browse files Browse the repository at this point in the history
It seems that QString::midRef() was removed in Qt6 so I'm reverting commit f4fb55b
  • Loading branch information
HeCorr committed Jul 27, 2024
1 parent 1bc9bcd commit 9fdf112
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/src/importimageseqdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const PredefinedKeySet ImportImageSeqDialog::generatePredefinedKeySet() const

for (int i = 0; i < filenames.size(); i++)
{
const int& frameIndex = filenames[i].midRef(setParams.dot - digits, digits).toInt();
const int& frameIndex = filenames[i].mid(setParams.dot - digits, digits).toInt();
const QString& absolutePath = folderPath + filenames[i];

keySet.insert(frameIndex, absolutePath);
Expand Down Expand Up @@ -260,7 +260,7 @@ const PredefinedKeySetParams ImportImageSeqDialog::predefinedKeySetParams() cons
{
if (sList[i].startsWith(prefix) &&
sList[i].length() == validLength &&
sList[i].midRef(sList[i].lastIndexOf(".") - digits, digits).toInt() > 0 &&
sList[i].mid(sList[i].lastIndexOf(".") - digits, digits).toInt() > 0 &&
sList[i].endsWith(suffix))
{
finalList.append(sList[i]);
Expand Down
2 changes: 1 addition & 1 deletion core_lib/src/movieexporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ Status MovieExporter::executeFFMpegPipe(const QString& cmd, const QStringList& a
}
if(output.startsWith("frame="))
{
lastFrameProcessed = framesProcessed = output.midRef(6, output.indexOf(' ')).toInt();
lastFrameProcessed = framesProcessed = output.mid(6, output.indexOf(' ')).toInt();
}
}

Expand Down

0 comments on commit 9fdf112

Please sign in to comment.