From: tbaudier Date: Thu, 4 Oct 2018 13:45:32 +0000 (+0200) Subject: Convert Drag/Drop opening file function to c++ < c++11 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=738abae55fb33a7c77843a9d84bc14d5439bff1a;p=clitk.git Convert Drag/Drop opening file function to c++ < c++11 --- diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index 30f7da5..1bf5469 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -832,8 +832,8 @@ void vvMainWindow::dropEvent(QDropEvent *event) if (!mimeData->hasUrls()) return; std::vector images; - for (auto const & url : mimeData->urls()) { - images.push_back(url.toLocalFile().toStdString()); + for (int i=0; iurls().size(); ++i) { + images.push_back(mimeData->urls()[i].toLocalFile().toStdString()); } LoadImages(images, vvImageReader::IMAGE); }