Use MaterialsModel for materialsModel

This specialized InstanceContainersModel has an override that makes the model a bit more efficient when non-materials get their metadata updated.

Contributes to issue CURA-4243.
This commit is contained in:
Ghostkeeper 2017-11-27 09:54:12 +01:00
parent 9938678347
commit e0f0e098ff
No known key found for this signature in database
GPG Key ID: 5252B696FB5E7C7A

View File

@ -1,4 +1,4 @@
// Copyright (c) 2016 Ultimaker B.V. // Copyright (c) 2017 Ultimaker B.V.
// Cura is released under the terms of the LGPLv3 or higher. // Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.2 import QtQuick 2.2
@ -143,7 +143,7 @@ Menu
} }
//: Model used to populate the brandModel //: Model used to populate the brandModel
UM.InstanceContainersModel Cura.MaterialsModel
{ {
id: materialsModel id: materialsModel
filter: materialFilter() filter: materialFilter()