mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 05:53:59 -06:00
Move QML files to resources
This commit is contained in:
parent
81aac4a1c1
commit
70d714def5
17 changed files with 0 additions and 0 deletions
41
resources/qml/EngineLog.qml
Normal file
41
resources/qml/EngineLog.qml
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue