]> Creatis software - clitk.git/commitdiff
Convert Drag/Drop opening file function to c++ < c++11
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 4 Oct 2018 13:45:32 +0000 (15:45 +0200)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 4 Oct 2018 13:45:32 +0000 (15:45 +0200)
vv/vvMainWindow.cxx

index 30f7da57693088207b345d4420971b291daf6858..1bf54692df4a6de78ae15e312f2d3786f9098249 100644 (file)
@@ -832,8 +832,8 @@ void vvMainWindow::dropEvent(QDropEvent *event)
   if (!mimeData->hasUrls())
     return;
   std::vector<std::string> images;
-  for (auto const & url : mimeData->urls()) {
-    images.push_back(url.toLocalFile().toStdString());
+  for (int i=0; i<mimeData->urls().size(); ++i) {
+    images.push_back(mimeData->urls()[i].toLocalFile().toStdString());
   }
   LoadImages(images, vvImageReader::IMAGE);
 }