mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-08 01:49:43 +02:00
59 lines
No EOL
1.4 KiB
QML
59 lines
No EOL
1.4 KiB
QML
//
|
|
// jet/TaskList.qml
|
|
//
|
|
// Created by Sam Gateau, 2018/03/28
|
|
// Copyright 2018 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
import QtQuick 2.7
|
|
import QtQuick.Controls 1.4 as Original
|
|
import QtQuick.Controls.Styles 1.4
|
|
|
|
import "qrc:///qml/styles-uit"
|
|
import "qrc:///qml/controls-uit" as HifiControls
|
|
|
|
//import QtQuick 2.7
|
|
//import QtQuick.Controls 1.4 as Original
|
|
//import QtQuick.Controls.Styles 1.4
|
|
|
|
//import QtQuick 2.5
|
|
//import QtQuick.Controls 1.4
|
|
//import Hifi 1.0 as Hifi
|
|
|
|
//import "qrc:///qml/styles-uit"
|
|
//import "qrc:///qml/controls-uit" as HifiControls
|
|
|
|
import "jet.js" as Jet
|
|
|
|
Rectangle {
|
|
id: root
|
|
width: parent ? parent.width : 200
|
|
height: parent ? parent.height : 400
|
|
property var rootConfig
|
|
|
|
Original.TextArea {
|
|
id: textArea
|
|
width: parent.width
|
|
height: parent.height
|
|
text: ""
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
var message = ""
|
|
var functor = Jet.job_print_functor(function (line) { message += line + "\n"; });
|
|
Jet.task_traverseTree(Workload, functor);
|
|
textArea.append(message);
|
|
}
|
|
function fromScript(mope) {
|
|
var message ='Received \n';
|
|
message += mope;
|
|
textArea.append(message);
|
|
}
|
|
|
|
function clearWindow() {
|
|
textArea.remove(0,textArea.length);
|
|
}
|
|
} |