summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-10 13:37:28 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-11-11 17:34:30 (GMT)
commit6f381e1d43b53a05c4c0aedc8bc6b25d92dbfc93 (patch)
tree98c2b9e60670e0845a9b0ed21432d6b032f4cb21 /examples
parentd635e5d0502289d720b71f32b0eecf534fed96f8 (diff)
downloadQt-6f381e1d43b53a05c4c0aedc8bc6b25d92dbfc93.zip
Qt-6f381e1d43b53a05c4c0aedc8bc6b25d92dbfc93.tar.gz
Qt-6f381e1d43b53a05c4c0aedc8bc6b25d92dbfc93.tar.bz2
Fixed opening files in the findfile example.
QDesktopServices::openUrl expects a proper url, not just a filename. Reviewed-by: Jedrzej Nowacki
Diffstat (limited to 'examples')
-rw-r--r--examples/dialogs/findfiles/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/dialogs/findfiles/window.cpp b/examples/dialogs/findfiles/window.cpp
index f8fc00b..afe6399 100644
--- a/examples/dialogs/findfiles/window.cpp
+++ b/examples/dialogs/findfiles/window.cpp
@@ -243,7 +243,7 @@ void Window::openFileOfItem(int row, int /* column */)
{
QTableWidgetItem *item = filesTable->item(row, 0);
- QDesktopServices::openUrl(currentDir.absoluteFilePath(item->text()));
+ QDesktopServices::openUrl(QUrl::fromLocalFile(currentDir.absoluteFilePath(item->text())));
}
//! [12]