summaryrefslogtreecommitdiffstats
path: root/examples/dialogs
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-10 14:37:28 +0100
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-10 14:40:05 +0100
commit64946cdc9a5e934132f5c21cbd85e4c21bb5e161 (patch)
treee0ec038dcbab5272f3834eafbf7ae4c206fb8302 /examples/dialogs
parentbecf20b9ac5d1f5e0373693656e2432e0b5e2304 (diff)
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/dialogs')
-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 f8fc00b55a..afe6399087 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]