From 3679ae18afeecb43cc9deab389723e69a64c5daf Mon Sep 17 00:00:00 2001 From: Thomas BAUDIER Date: Tue, 22 Oct 2019 09:30:06 +0200 Subject: [PATCH] Change name to be more readable With extension after the name, the extension is not visible in the selection for screenshot --- vv/vvMainWindow.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index 8d2690f..d148c3f 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -3399,18 +3399,18 @@ void vvMainWindow::SaveScreenshot(QVTKOpenGLNativeWidget *widget) void vvMainWindow::SaveScreenshot(QVTKWidget *widget) #endif { - QString Extensions = "Images( *.png);;"; - Extensions += "Images( *.jpg);;"; - Extensions += "Images( *.bmp);;"; - Extensions += "Images( *.tif);;"; - Extensions += "Images( *.ppm)"; + QString Extensions = "*.png;;"; + Extensions += "*.jpg;;"; + Extensions += "*.bmp;;"; + Extensions += "*.tif;;"; + Extensions += "*.ppm"; #if defined(VTK_USE_FFMPEG_ENCODER) || defined(VTK_USE_VIDEO_FOR_WINDOWS) - Extensions += ";;Video( *.avi)"; + Extensions += ";;*.avi Video"; #endif #ifdef VTK_USE_MPEG2_ENCODER - Extensions += ";;Video( *.mpg)"; + Extensions += ";;*.mpg Video"; #endif - Extensions += ";;Video( *.gif)"; + Extensions += ";;*.gif Video"; int smIndex=GetSlicerIndexFromItem(DataTree->selectedItems()[0]); QString fileName = QFileDialog::getSaveFileName(this, -- 2.47.1