mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 09:08:47 +02:00
Enable user selection of destination folder when creating a test.
This commit is contained in:
parent
b47b512ab9
commit
a4854839a4
1 changed files with 5 additions and 1 deletions
|
@ -430,6 +430,11 @@ void Test::createTest() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString imageDestinationDirectory = QFileDialog::getExistingDirectory(nullptr, "Please select folder to save the test images", ".", QFileDialog::ShowDirsOnly);
|
||||||
|
if (imageDestinationDirectory == "") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
QStringList sortedImageFilenames = createListOfAll_imagesInDirectory("jpg", imageSourceDirectory);
|
QStringList sortedImageFilenames = createListOfAll_imagesInDirectory("jpg", imageSourceDirectory);
|
||||||
|
|
||||||
int i = 1;
|
int i = 1;
|
||||||
|
@ -442,7 +447,6 @@ void Test::createTest() {
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
QString newFilename = "ExpectedImage_" + QString::number(i - 1).rightJustified(5, '0') + ".png";
|
QString newFilename = "ExpectedImage_" + QString::number(i - 1).rightJustified(5, '0') + ".png";
|
||||||
QString imageDestinationDirectory = getExpectedImageDestinationDirectory(currentFilename);
|
|
||||||
QString fullNewFileName = imageDestinationDirectory + "/" + newFilename;
|
QString fullNewFileName = imageDestinationDirectory + "/" + newFilename;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue