Move QML files to resources

This commit is contained in:
Arjen Hiemstra 2015-05-01 13:11:27 +02:00
parent 81aac4a1c1
commit 70d714def5
17 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,41 @@
import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1
import UM 1.0 as UM
UM.Dialog {
id: dialog;
//: Engine Log dialog title
title: qsTr("Engine Log");
modality: Qt.NonModal;
TextArea {
id: textArea
anchors.fill: parent;
Timer {
id: updateTimer;
interval: 1000;
running: false;
repeat: true;
onTriggered: textArea.text = Printer.getEngineLog();
}
}
rightButtons: Button {
text: qsTr("Close");
onClicked: dialog.visible = false;
}
onVisibleChanged: {
if(visible) {
textArea.text = Printer.getEngineLog();
updateTimer.start();
} else {
updateTimer.stop();
}
}
}