Mantid
Loading...
Searching...
No Matches
Functions
DropEventHelper.cpp File Reference
#include "MantidQtWidgets/Common/DropEventHelper.h"
#include <QFileInfo>
#include <QMimeData>
#include <QStringList>
#include <QUrl>

Go to the source code of this file.

Functions

QUrl fixupURL (const QUrl &url)
 Workaround for file path bug on OSX >=10.10 with Qt4. More...
 

Function Documentation

◆ fixupURL()

QUrl fixupURL ( const QUrl &  url)

Workaround for file path bug on OSX >=10.10 with Qt4.

On Windows/Linux this simply returns the URL unchanged.

For more information see this bug report: https://bugreports.qt.io/browse/QTBUG-40449

Parameters
url:: the url to correct the path for
Returns
a valid url to a file path

Definition at line 31 of file DropEventHelper.cpp.

References error.

Referenced by MantidQt::MantidWidgets::DropEventHelper::getFileNames().