mirror of
https://github.com/lubosz/overte.git
synced 2025-04-17 00:57:44 +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;
|
||||
}
|
||||
|
||||
QString imageDestinationDirectory = QFileDialog::getExistingDirectory(nullptr, "Please select folder to save the test images", ".", QFileDialog::ShowDirsOnly);
|
||||
if (imageDestinationDirectory == "") {
|
||||
return;
|
||||
}
|
||||
|
||||
QStringList sortedImageFilenames = createListOfAll_imagesInDirectory("jpg", imageSourceDirectory);
|
||||
|
||||
int i = 1;
|
||||
|
@ -442,7 +447,6 @@ void Test::createTest() {
|
|||
exit(-1);
|
||||
}
|
||||
QString newFilename = "ExpectedImage_" + QString::number(i - 1).rightJustified(5, '0') + ".png";
|
||||
QString imageDestinationDirectory = getExpectedImageDestinationDirectory(currentFilename);
|
||||
QString fullNewFileName = imageDestinationDirectory + "/" + newFilename;
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue