forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user