summaryrefslogtreecommitdiffstats
path: root/src/gui/util/qdesktopservices.cpp
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2009-03-30 16:11:04 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-03-30 16:11:04 (GMT)
commit577853b93dd4cf848abbd95abfed7e5a9d48688b (patch)
tree3aa5752a29c7ed41bc2abd772a9b0bb67fab698a /src/gui/util/qdesktopservices.cpp
parent87f1ea14ae7e245dd7589b1d992f67b0058ae1b5 (diff)
downloadQt-577853b93dd4cf848abbd95abfed7e5a9d48688b.zip
Qt-577853b93dd4cf848abbd95abfed7e5a9d48688b.tar.gz
Qt-577853b93dd4cf848abbd95abfed7e5a9d48688b.tar.bz2
Doc: Added a code snippet to illustrate the opening of local files.
Task-number: 223087 Reviewed-by: TrustMe
Diffstat (limited to 'src/gui/util/qdesktopservices.cpp')
-rw-r--r--src/gui/util/qdesktopservices.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/util/qdesktopservices.cpp b/src/gui/util/qdesktopservices.cpp
index 0fe1d69..84aa16e 100644
--- a/src/gui/util/qdesktopservices.cpp
+++ b/src/gui/util/qdesktopservices.cpp
@@ -157,6 +157,11 @@ void QOpenUrlHandlerRegistry::handlerDestroyed(QObject *handler)
If the URL is a reference to a local file (i.e., the URL scheme is "file") then
it will be opened with a suitable application instead of a Web browser.
+ The following example opens a file on the Windows file system residing on a path
+ that contains spaces:
+
+ \snippet doc/src/snippets/code/src_gui_util_qdesktopservices.cpp 2
+
If a \c mailto URL is specified, the user's e-mail client will be used to open a
composer window containing the options specified in the URL, similar to the way
\c mailto links are handled by a Web browser.