adressing review comments

This commit is contained in:
Sam Gateau 2018-11-28 21:46:13 -08:00
parent 9353745054
commit aa749b0980
4 changed files with 2 additions and 39 deletions

View file

@ -26,30 +26,10 @@ Rectangle {
Component.onCompleted: {
//var functor = Jet.job_tree_model_functor(jobsModel)
var functor = Jet.job_tree_model_functor(jobsModel, 3, function(node) {
node["cpuT"] = 0.0
})
Jet.task_traverseTree(rootConfig, functor);
/* var tfunctor = Jet.job_tree_model_array_functor(jobsModel.engineJobItemModel, function(node) {
node["init"] = (node.level < 3)
node["fullpath"] = (node.path + "." + node.name)
node["cpuT"] = 0.0
})
Jet.task_traverseTree(rootConfig, tfunctor);
*/
// var currentParentStach = []
// currentParentStach.push(jobsModel);
/* Jet.job_traverseTreeNodeRoot(jobsModel.engineJobItemModel[0], function(node, depth, index) {
print(node.name + depth + " - " + index)
return true
})*/
}
@ -95,15 +75,13 @@ Rectangle {
HifiControls.Label {
id: objLabel
// property var config: root.rootConfig.getConfig(model.path + "." + model.name);
colorScheme: (root.rootConfig.getConfig(model.path + "." + model.name) ? hifi.colorSchemes.dark : hifi.colorSchemes.light)
text: (objRecursiveColumn.children.length > 2 ?
objRecursiveColumn.children[1].visible ?
qsTr("- ") : qsTr("+ ") : qsTr(" ")) + model.name
// + " ms=" + config.cpuRunTime.toFixed(3)
+ " id=" + model.id
}
}
}
}
Repeater {

View file

@ -166,7 +166,6 @@ Rectangle {
function drawJob(ctx, depth, index, duration, timeOffset) {
//print(root.jobsArray[index].cpuT)
// ctx.fillStyle = Qt.rgba(255, 255, 0, root.backgroundOpacity);
ctx.fillStyle = ( depth % 2 ? ( index % 2 ? "blue" : "yellow") : ( index % 2 ? "green" : "red"))
ctx.fillRect(getXFromTime(timeOffset), lineHeight * 2 * depth,getWFromDuration(duration), lineHeight);

View file

@ -1,17 +1,3 @@
/*function openEngineTaskView() {
// Set up the qml ui
var qml = Script.resolvePath('engineInspector.qml');
var window = new OverlayWindow({
title: 'Render Engine',
source: qml,
width: 500,
height: 100
});
window.setPosition(200, 50);
window.closed.connect(function() { Script.stop(); });
}
openEngineTaskView();*/
(function() {
var TABLET_BUTTON_NAME = "Inspector";
var QMLAPP_URL = Script.resolvePath("./engineInspector.qml");

View file

@ -26,5 +26,5 @@ Item {
Jet.TaskListView {
rootConfig: root.rootConfig
anchors.fill: root
}
}
}