mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Improved structure and enabled display by author
This commit is contained in:
parent
dc00156410
commit
91001455ad
9 changed files with 310 additions and 91 deletions
|
@ -50,8 +50,7 @@ Item
|
|||
Label
|
||||
{
|
||||
id: info
|
||||
text:
|
||||
{
|
||||
text: {
|
||||
if (model.description.length > 50)
|
||||
{
|
||||
return model.description.substring(0, 50) + "..."
|
||||
|
@ -69,9 +68,19 @@ Item
|
|||
{
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
console.log(model.id)
|
||||
manager.detailView = true
|
||||
manager.setDetailData(model.id)
|
||||
if ( manager.viewCategory == "material" )
|
||||
{
|
||||
console.log("filtering by " + model.author)
|
||||
manager.viewSelection = model.author.name
|
||||
manager.viewPage = "author"
|
||||
manager.filterPackages("author", model.author)
|
||||
}
|
||||
else
|
||||
{
|
||||
manager.viewSelection = model.id
|
||||
manager.viewPage = "detail"
|
||||
manager.filterPackages("id", model.id)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue