aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/qmlprofiler/qml/RangeDetails.qml
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/qmlprofiler/qml/RangeDetails.qml')
-rw-r--r--plugins/qmlprofiler/qml/RangeDetails.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/qmlprofiler/qml/RangeDetails.qml b/plugins/qmlprofiler/qml/RangeDetails.qml
index ef1a19234bf..c066b06bde1 100644
--- a/plugins/qmlprofiler/qml/RangeDetails.qml
+++ b/plugins/qmlprofiler/qml/RangeDetails.qml
@@ -82,6 +82,19 @@ Item {
rangeDetails.visible = true;
}
+ function setLocation(location) {
+ if (location.hasOwnProperty("file")) { // not empty
+ file = location.file;
+ line = location.line;
+ column = location.column;
+ } else {
+ // reset to default values
+ file = "";
+ line = 0;
+ column = -1;
+ }
+ }
+
function fitInView() {
// don't reposition if it does not fit
if (root.width < width || root.candidateHeight < height)