summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qurl.h
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2012-02-08 22:17:03 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-11 11:02:01 +0100
commit3791d3b0c2dab448b53720979b2375998d06e209 (patch)
tree219d7b01392de1eabe340a25690784c9a6f8c868 /src/corelib/io/qurl.h
parent10830e844683c75d96c024450b4b7a624d8d6d8f (diff)
Add QUrl::toDisplayString(), which is toString() without password.
And fix documentation of toString() which said this was the method to use for displaying to humans, while this has never been true. Change-Id: Iff6df92e32b2517e1481d4992d80cae2d58da427 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Jonas Gastal <jgastal@profusion.mobi> Reviewed-by: Giuseppe D'Angelo <dangelog@gmail.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/corelib/io/qurl.h')
-rw-r--r--src/corelib/io/qurl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/io/qurl.h b/src/corelib/io/qurl.h
index 1c3390bc3d..3e5c62cd7c 100644
--- a/src/corelib/io/qurl.h
+++ b/src/corelib/io/qurl.h
@@ -102,6 +102,7 @@ public:
void setUrl(const QString &url, ParsingMode mode = TolerantMode);
QString url(FormattingOptions options = None) const;
QString toString(FormattingOptions options = None) const;
+ QString toDisplayString(FormattingOptions options = None) const;
bool isValid() const;