mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-08 06:19:01 +08:00
64 lines
1.6 KiB
QML
64 lines
1.6 KiB
QML
// Copyright (c) 2016 Ultimaker B.V.
|
|
// Cura is released under the terms of the AGPLv3 or higher.
|
|
|
|
import QtQuick 2.1
|
|
import QtQuick.Controls 1.1
|
|
|
|
import UM 1.2 as UM
|
|
import Cura 1.0 as Cura
|
|
|
|
Tab
|
|
{
|
|
id: base
|
|
|
|
property string extruderId: "";
|
|
property string quality: "";
|
|
property string material: "";
|
|
|
|
TableView
|
|
{
|
|
anchors.fill: parent
|
|
anchors.margins: UM.Theme.getSize("default_margin").width
|
|
|
|
TableViewColumn
|
|
{
|
|
role: "label"
|
|
title: catalog.i18nc("@title:column", "Setting")
|
|
width: parent.width * 0.4
|
|
}
|
|
TableViewColumn
|
|
{
|
|
role: "profile_value"
|
|
title: catalog.i18nc("@title:column", "Profile")
|
|
width: parent.width * 0.18
|
|
}
|
|
TableViewColumn
|
|
{
|
|
role: "user_value"
|
|
title: catalog.i18nc("@title:column", "Current");
|
|
visible: quality == Cura.MachineManager.activeQualityId
|
|
width: parent.width * 0.18
|
|
}
|
|
TableViewColumn
|
|
{
|
|
role: "unit"
|
|
title: catalog.i18nc("@title:column", "Unit")
|
|
width: parent.width * 0.14
|
|
}
|
|
|
|
section.property: "category"
|
|
section.delegate: Label
|
|
{
|
|
text: section
|
|
font.bold: true
|
|
}
|
|
|
|
model: Cura.QualitySettingsModel
|
|
{
|
|
extruderId: base.extruderId != "" ? base.extruderId : ""
|
|
quality: base.quality != null ? base.quality : ""
|
|
material: base.material != null ? base.material : ""
|
|
}
|
|
}
|
|
}
|