diff options
author | David Boddie <dboddie@trolltech.com> | 2009-03-30 16:11:04 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-03-30 16:12:49 (GMT) |
commit | e475c68f22732553caad350608f2539db7694979 (patch) | |
tree | 96fd1d68f82233d5411ff007dc058db7bb0d8385 /src/gui/util | |
parent | b91da630b8b1d043bd8ebe52df6fd9c562564d89 (diff) | |
download | Qt-e475c68f22732553caad350608f2539db7694979.zip Qt-e475c68f22732553caad350608f2539db7694979.tar.gz Qt-e475c68f22732553caad350608f2539db7694979.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')
-rw-r--r-- | src/gui/util/qdesktopservices.cpp | 5 |
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. |