summaryrefslogtreecommitdiffstats
path: root/examples/dialogs
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-10 13:37:28 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-10 13:40:05 (GMT)
commit64946cdc9a5e934132f5c21cbd85e4c21bb5e161 (patch)
treee0ec038dcbab5272f3834eafbf7ae4c206fb8302 /examples/dialogs
parentbecf20b9ac5d1f5e0373693656e2432e0b5e2304 (diff)
downloadQt-64946cdc9a5e934132f5c21cbd85e4c21bb5e161.zip
Qt-64946cdc9a5e934132f5c21cbd85e4c21bb5e161.tar.gz
Qt-64946cdc9a5e934132f5c21cbd85e4c21bb5e161.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/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 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]