From 0f062f42b9817205aab657dcfaeaa8c3ed302889 Mon Sep 17 00:00:00 2001 From: David Faure Date: Sun, 14 Jul 2013 00:45:14 +0200 Subject: QUrl: add fileName() method. Complements QUrl::RemoveFilename. Change-Id: Ieda43364214c3b7aee43040e176e29ad48c14271 Reviewed-by: Thiago Macieira --- src/corelib/io/qurl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/corelib/io/qurl.h') diff --git a/src/corelib/io/qurl.h b/src/corelib/io/qurl.h index 5678c7813b..3018f6d0e4 100644 --- a/src/corelib/io/qurl.h +++ b/src/corelib/io/qurl.h @@ -224,6 +224,7 @@ public: void setPath(const QString &path, ParsingMode mode = TolerantMode); QString path(ComponentFormattingOptions options = PrettyDecoded) const; + QString fileName(ComponentFormattingOptions options = PrettyDecoded) const; bool hasQuery() const; void setQuery(const QString &query, ParsingMode mode = TolerantMode); -- cgit v1.2.3