Adds rough first version of rating stars

It's not fully polished just yet

CURA-6013
This commit is contained in:
Jaime van Kessel 2018-12-07 15:31:33 +01:00
parent ab8a2a9b2b
commit f4220da550
8 changed files with 180 additions and 17 deletions

View file

@ -84,6 +84,16 @@ Item
color: UM.Theme.getColor("text_medium")
font: UM.Theme.getFont("default")
}
RatingWidget
{
visible: model.type == "plugin"
packageId: model.id
rating: model.average_rating != undefined ? model.average_rating : 0
numRatings: model.num_ratings != undefined ? model.num_ratings : 0
userRating: model.user_rating
enabled: installedPackages != 0
}
}
}
MouseArea