summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qurl.h
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2013-04-25 10:33:55 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-13 17:11:59 +0200
commita7bc4e849447758e1b67b1daefd0772f3f205ca6 (patch)
treec5965b91d4c8f965b2f27e20942055930b520fa4 /src/corelib/io/qurl.h
parent659f62981f8fa475e138a6c47f3b50adaacba53e (diff)
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 <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qurl.h')
-rw-r--r--src/corelib/io/qurl.h3
1 files changed, 2 insertions, 1 deletions
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 {