mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1730 Include more information in snapshot filenames
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "RimViewWindow.h"
|
||||
|
||||
#include "RicSnapshotViewToFileFeature.h"
|
||||
#include "RicSnapshotFilenameGenerator.h"
|
||||
|
||||
#include "RiuMainPlotWindow.h"
|
||||
|
||||
@@ -90,17 +91,7 @@ void RicSnapshotAllPlotsToFileFeature::exportSnapshotOfAllPlotsIntoFolder(QStrin
|
||||
{
|
||||
if (viewWindow->isMdiWindow() && viewWindow->viewWidget())
|
||||
{
|
||||
QString fileName;
|
||||
if ( viewWindow->userDescriptionField())
|
||||
{
|
||||
fileName = viewWindow->userDescriptionField()->uiCapability()->uiValue().toString();
|
||||
}
|
||||
else
|
||||
{
|
||||
fileName = viewWindow->uiCapability()->uiName();
|
||||
}
|
||||
|
||||
fileName = caf::Utils::makeValidFileBasename(fileName);
|
||||
QString fileName = RicSnapshotFilenameGenerator::generateSnapshotFileName(viewWindow);
|
||||
|
||||
QString absoluteFileName = caf::Utils::constructFullFileName(absSnapshotPath, fileName, ".png");
|
||||
absoluteFileName.replace(" ", "_");
|
||||
|
||||
Reference in New Issue
Block a user