QFileDialog: compile with QT_NO_URL_CAST_FROM_STRING.

This is useful to detect confusions between local paths and URLs.

Change-Id: I1aa72ae10186984812691c8a1a4e843db3c85246
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
David Faure 2014-07-09 11:53:08 +02:00
parent e7b4aaadfa
commit 745448d3ea
2 changed files with 3 additions and 1 deletions

View File

@ -39,6 +39,8 @@
**
****************************************************************************/
#define QT_NO_URL_CAST_FROM_STRING
#include <qvariant.h>
#include <private/qwidgetitemdata_p.h>
#include "qfiledialog.h"

View File

@ -369,7 +369,7 @@ inline QUrl QFileDialogPrivate::directory_sys() const
{
if (QPlatformFileDialogHelper *helper = platformFileDialogHelper())
return helper->directory();
return QString();
return QUrl();
}
inline void QFileDialogPrivate::selectFile_sys(const QUrl &filename)