mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Add Section Header and Section Setting item components.
Upgrade Adhesion to use new components CURA-9793
This commit is contained in:
parent
a7dc1b24bc
commit
ac2e733ea6
4 changed files with 127 additions and 69 deletions
|
@ -0,0 +1,36 @@
|
|||
// 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 2.10
|
||||
|
||||
import UM 1.5 as UM
|
||||
import Cura 1.7 as Cura
|
||||
|
||||
|
||||
Item
|
||||
{
|
||||
property Component content: Item { visible: false }
|
||||
property alias settingName: settingLabel.text
|
||||
|
||||
UM.Label
|
||||
{
|
||||
id: settingLabel
|
||||
anchors.left: parent.left
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
text: "TEST"
|
||||
}
|
||||
|
||||
|
||||
Loader
|
||||
{
|
||||
id: settingLoader
|
||||
width: parent.width
|
||||
height: content.height
|
||||
anchors.left: settingLabel.right
|
||||
anchors.right: parent.right
|
||||
anchers.verticalCenter: parent.verticalCenter
|
||||
sourceComponent: content
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue