]> Creatis software - clitk.git/commitdiff
Change name to be more readable
authorThomas BAUDIER <thomas.baudier@creatis.insa-lyon.fr>
Tue, 22 Oct 2019 07:30:06 +0000 (09:30 +0200)
committerThomas BAUDIER <thomas.baudier@creatis.insa-lyon.fr>
Tue, 22 Oct 2019 07:30:06 +0000 (09:30 +0200)
With extension after the name, the extension is not visible in the selection for screenshot

vv/vvMainWindow.cxx

index 8d2690fe245bcf1c996af8743f3dc704d2227f54..d148c3f14cc8ecf9ed748483372cbe5751ebaa6c 100644 (file)
@@ -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,