mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
adressing review comments
This commit is contained in:
parent
9353745054
commit
aa749b0980
4 changed files with 2 additions and 39 deletions
|
@ -26,30 +26,10 @@ Rectangle {
|
||||||
|
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
//var functor = Jet.job_tree_model_functor(jobsModel)
|
|
||||||
var functor = Jet.job_tree_model_functor(jobsModel, 3, function(node) {
|
var functor = Jet.job_tree_model_functor(jobsModel, 3, function(node) {
|
||||||
node["cpuT"] = 0.0
|
node["cpuT"] = 0.0
|
||||||
})
|
})
|
||||||
Jet.task_traverseTree(rootConfig, functor);
|
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 {
|
HifiControls.Label {
|
||||||
id: objLabel
|
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)
|
colorScheme: (root.rootConfig.getConfig(model.path + "." + model.name) ? hifi.colorSchemes.dark : hifi.colorSchemes.light)
|
||||||
text: (objRecursiveColumn.children.length > 2 ?
|
text: (objRecursiveColumn.children.length > 2 ?
|
||||||
objRecursiveColumn.children[1].visible ?
|
objRecursiveColumn.children[1].visible ?
|
||||||
qsTr("- ") : qsTr("+ ") : qsTr(" ")) + model.name
|
qsTr("- ") : qsTr("+ ") : qsTr(" ")) + model.name
|
||||||
// + " ms=" + config.cpuRunTime.toFixed(3)
|
|
||||||
+ " id=" + model.id
|
+ " id=" + model.id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
|
|
|
@ -166,7 +166,6 @@ Rectangle {
|
||||||
|
|
||||||
function drawJob(ctx, depth, index, duration, timeOffset) {
|
function drawJob(ctx, depth, index, duration, timeOffset) {
|
||||||
//print(root.jobsArray[index].cpuT)
|
//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.fillStyle = ( depth % 2 ? ( index % 2 ? "blue" : "yellow") : ( index % 2 ? "green" : "red"))
|
||||||
ctx.fillRect(getXFromTime(timeOffset), lineHeight * 2 * depth,getWFromDuration(duration), lineHeight);
|
ctx.fillRect(getXFromTime(timeOffset), lineHeight * 2 * depth,getWFromDuration(duration), lineHeight);
|
||||||
|
|
||||||
|
|
|
@ -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() {
|
(function() {
|
||||||
var TABLET_BUTTON_NAME = "Inspector";
|
var TABLET_BUTTON_NAME = "Inspector";
|
||||||
var QMLAPP_URL = Script.resolvePath("./engineInspector.qml");
|
var QMLAPP_URL = Script.resolvePath("./engineInspector.qml");
|
||||||
|
|
|
@ -26,5 +26,5 @@ Item {
|
||||||
Jet.TaskListView {
|
Jet.TaskListView {
|
||||||
rootConfig: root.rootConfig
|
rootConfig: root.rootConfig
|
||||||
anchors.fill: root
|
anchors.fill: root
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue