summaryrefslogtreecommitdiff
path: root/examples/quick/controls/filesystembrowser/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/controls/filesystembrowser/main.qml')
-rw-r--r--examples/quick/controls/filesystembrowser/main.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/quick/controls/filesystembrowser/main.qml b/examples/quick/controls/filesystembrowser/main.qml
index b85002d5..6e79ca61 100644
--- a/examples/quick/controls/filesystembrowser/main.qml
+++ b/examples/quick/controls/filesystembrowser/main.qml
@@ -41,6 +41,7 @@
import QtQuick 2.2
import QtQuick.Controls 1.5
import QtQml.Models 2.2
+import io.qt.examples.quick.controls.filesystembrowser 1.0
ApplicationWindow {
visible: true
@@ -120,6 +121,9 @@ ApplicationWindow {
resizable: true
}
- onActivated : Qt.openUrlExternally(fileSystemModel.data(index, 263))
+ onActivated : {
+ var url = fileSystemModel.data(index, FileSystemModel.UrlStringRole)
+ Qt.openUrlExternally(url)
+ }
}
}