Tracing: Add tooltip and category color properties to TimelineModel

This doesn't change the existing behavior. The new properties are used
by the upcoming CTF plugin.

Change-Id: Ic375e8d70fdc7dbd3c124f83087a0e220a76f2c1
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Tim Henning
2019-07-23 13:32:21 +02:00
parent 78aee4e594
commit cdf4562eb8
6 changed files with 78 additions and 22 deletions

View File

@@ -404,17 +404,9 @@ Rectangle {
function showInfo() {
var timelineModel = timelineModelAggregator.models[selectedModel];
var eventData = timelineModel.details(selectedItem)
var content = [];
for (var k in eventData) {
if (k === "displayName") {
dialogTitle = eventData[k];
} else {
content.push(k);
content.push(eventData[k]);
}
}
rangeDetails.model = content;
var eventData = timelineModel.orderedDetails(selectedItem)
dialogTitle = eventData["title"] || "";
rangeDetails.model = eventData["content"] || [];
var location = timelineModel.location(selectedItem)
if (location.hasOwnProperty("file")) { // not empty