mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 22:23:57 -06:00
Allow PackageList to be used as a model from QML
QML is leading here and holding the pointers for creation and destruction. Contributes to issue CURA-8556.
This commit is contained in:
parent
4337e81b77
commit
3138452f94
3 changed files with 19 additions and 4 deletions
|
@ -2,8 +2,18 @@
|
|||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Controls 2.15
|
||||
import Cura 1.7 as Cura
|
||||
|
||||
Rectangle
|
||||
Item
|
||||
{
|
||||
color: "pink" //TODO
|
||||
Repeater
|
||||
{
|
||||
model: Cura.PackageList{}
|
||||
|
||||
Label
|
||||
{
|
||||
text: "Test" //TODO: Create a card for each package.
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue