Initial implementation for the Compatibility Dialog window

CURA-7038
This commit is contained in:
Dimitriovski 2019-12-23 15:18:09 +01:00
parent 9cf5a388f3
commit bd8c1e4c96
No known key found for this signature in database
GPG key ID: 4E62757E2B0D304D
3 changed files with 115 additions and 155 deletions

View file

@ -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!")
}
}
}
}
}
}
}