From a7bc4e849447758e1b67b1daefd0772f3f205ca6 Mon Sep 17 00:00:00 2001 From: David Faure Date: Thu, 25 Apr 2013 10:33:55 +0200 Subject: QUrl: add NormalizePathSegments to UrlFormattingOptions This is a bit like QDir::cleanPath(), but for URL paths. The code is shared with QDir::cleanPath(), by extracting the common parts it into a helper, qt_normalizePathSegments(). Change-Id: I7133c5e4aa2bf17fba98af13eb5371afba64197a Reviewed-by: Thiago Macieira --- src/corelib/io/qurl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/corelib/io/qurl.h') diff --git a/src/corelib/io/qurl.h b/src/corelib/io/qurl.h index 453e0be1d2..5678c7813b 100644 --- a/src/corelib/io/qurl.h +++ b/src/corelib/io/qurl.h @@ -141,7 +141,8 @@ public: // 0x100 was a private code in Qt 4, keep unused for a while PreferLocalFile = 0x200, StripTrailingSlash = 0x400, - RemoveFilename = 0x800 + RemoveFilename = 0x800, + NormalizePathSegments = 0x1000 }; enum ComponentFormattingOption { -- cgit v1.2.3