summaryrefslogtreecommitdiffstats
path: root/doc
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:12:49 (GMT)
commite475c68f22732553caad350608f2539db7694979 (patch)
tree96fd1d68f82233d5411ff007dc058db7bb0d8385 /doc
parentb91da630b8b1d043bd8ebe52df6fd9c562564d89 (diff)
downloadQt-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 'doc')
-rw-r--r--doc/src/snippets/code/src_gui_util_qdesktopservices.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/src/snippets/code/src_gui_util_qdesktopservices.cpp b/doc/src/snippets/code/src_gui_util_qdesktopservices.cpp
index a9c630b..5001984 100644
--- a/doc/src/snippets/code/src_gui_util_qdesktopservices.cpp
+++ b/doc/src/snippets/code/src_gui_util_qdesktopservices.cpp
@@ -11,7 +11,10 @@ public slots:
QDesktopServices::setUrlHandler("help", helpInstance, "showHelp");
//! [0]
-
//! [1]
mailto:user@foo.com?subject=Test&body=Just a test
//! [1]
+
+//! [2]
+QDesktopServices::openUrl(QUrl("file:///C:/Documents and Settings/All Users/Desktop", QUrl::TolerantMode));
+//! [2]