mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Initial implementation for the Compatibility Dialog window
CURA-7038
This commit is contained in:
parent
9cf5a388f3
commit
bd8c1e4c96
3 changed files with 115 additions and 155 deletions
|
@ -13,27 +13,63 @@ import UM 1.1 as UM
|
|||
import Cura 1.6 as Cura
|
||||
|
||||
|
||||
UM.Dialog
|
||||
{
|
||||
UM.Dialog{
|
||||
visible: true
|
||||
title: "Changes from your account"
|
||||
Label{
|
||||
text: "Some text here"
|
||||
height: 50
|
||||
}
|
||||
Rectangle
|
||||
{
|
||||
id: compatibleRectangle
|
||||
width: parent.width
|
||||
height: 300
|
||||
Label{
|
||||
text: "Some text here"
|
||||
height: 50
|
||||
}
|
||||
|
||||
title: "Some title"
|
||||
minimumWidth: UM.Theme.getSize("license_window_minimum").width
|
||||
minimumHeight: UM.Theme.getSize("license_window_minimum").height
|
||||
width: minimumWidth
|
||||
height: minimumHeight
|
||||
|
||||
ListView
|
||||
{
|
||||
id: listView
|
||||
|
||||
// Compatible packages
|
||||
Column{
|
||||
id: compatibleColumn
|
||||
anchors.fill: parent
|
||||
spacing: 2
|
||||
|
||||
Repeater{
|
||||
model: toolbox.subscribedPackagesModel
|
||||
delegate: Rectangle{
|
||||
id: someRect
|
||||
width: parent.width
|
||||
height: 50
|
||||
border.color: "black"
|
||||
Image{
|
||||
source: model.icon_url || "../../images/logobot.svg"
|
||||
width: 50
|
||||
height: parent.height
|
||||
//anchors.left: parent.left
|
||||
//anchors.right: packageName.left
|
||||
anchors.rightMargin: 20
|
||||
}
|
||||
Text{
|
||||
id: packageName
|
||||
text: model.name
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
MouseArea{
|
||||
anchors.fill: parent
|
||||
|
||||
|
||||
model: toolbox.subscribedPackagesModel
|
||||
|
||||
delegate: Label
|
||||
{
|
||||
text: "A :)"
|
||||
onClicked: {
|
||||
console.log("Clicked!")
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue