mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 03:16:04 +08:00
added missing qml
This commit is contained in:
parent
4dc6f87a36
commit
988741d418
42
ControlWindow.qml
Normal file
42
ControlWindow.qml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
import QtQuick 2.1
|
||||||
|
import QtQuick.Controls 1.1
|
||||||
|
import QtQuick.Layouts 1.1
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
width: 300; height: 100
|
||||||
|
ColumnLayout
|
||||||
|
{
|
||||||
|
Text
|
||||||
|
{
|
||||||
|
text: "Hello world!"
|
||||||
|
color: "blue"
|
||||||
|
}
|
||||||
|
RowLayout
|
||||||
|
{
|
||||||
|
Button
|
||||||
|
{
|
||||||
|
text: "Print"
|
||||||
|
onClicked: { manager.startPrint() }
|
||||||
|
}
|
||||||
|
Button
|
||||||
|
{
|
||||||
|
text: "Cancel"
|
||||||
|
onClicked: { manager.cancelPrint() }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ProgressBar
|
||||||
|
{
|
||||||
|
id: prog;
|
||||||
|
value: manager.progress
|
||||||
|
minimumValue: 0;
|
||||||
|
maximumValue: 100;
|
||||||
|
Layout.maximumWidth:parent.width
|
||||||
|
Layout.preferredWidth:230
|
||||||
|
Layout.preferredHeight:25
|
||||||
|
Layout.minimumWidth:230
|
||||||
|
Layout.minimumHeight:25
|
||||||
|
width: 230
|
||||||
|
height: 25
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user