Add bunch of ID's to qml components so it's easier to test them.

CURA-5618
This commit is contained in:
Jaime van Kessel 2018-09-11 16:05:53 +02:00
parent f628b63c29
commit a809575bc8
7 changed files with 31 additions and 13 deletions

View file

@ -9,6 +9,7 @@ import UM 1.1 as UM
Item
{
id: toolboxDownloadsGridTile
property int packageCount: (toolbox.viewCategory == "material" && model.type === undefined) ? toolbox.getTotalNumberOfMaterialPackagesByAuthor(model.id) : 1
property int installedPackages: (toolbox.viewCategory == "material" && model.type === undefined) ? toolbox.getNumberOfInstalledPackagesByAuthor(model.id) : (toolbox.isInstalled(model.id) ? 1 : 0)
height: childrenRect.height