mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 05:39:37 +08:00
46 lines
987 B
QML
46 lines
987 B
QML
// Copyright (c) 2022 Ultimaker B.V.
|
|
// Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
import QtQuick 2.10
|
|
import QtQuick.Controls 2.3
|
|
import QtQuick.Layouts 1.3
|
|
import QtQuick.Window 2.2
|
|
|
|
import UM 1.5 as UM
|
|
import Cura 1.1 as Cura
|
|
|
|
RowLayout
|
|
{
|
|
id: root
|
|
|
|
property alias leftLabelText: leftLabel.text
|
|
property alias rightLabelText: rightLabel.text
|
|
property alias buttonText: button.text
|
|
signal buttonClicked
|
|
|
|
width: parent.width
|
|
|
|
UM.Label
|
|
{
|
|
id: leftLabel
|
|
text: catalog.i18nc("@action:label", "Type")
|
|
Layout.preferredWidth: Math.round(parent.width / 4)
|
|
wrapMode: Text.WordWrap
|
|
}
|
|
|
|
UM.Label
|
|
{
|
|
id: rightLabel
|
|
text: manager.machineType
|
|
wrapMode: Text.WordWrap
|
|
}
|
|
|
|
Cura.TertiaryButton
|
|
{
|
|
id: button
|
|
visible: !text.isEmpty
|
|
Layout.maximumHeight: leftLabel.implicitHeight
|
|
Layout.fillWidth: true
|
|
onClicked: root.buttonClicked()
|
|
}
|
|
} |