Browse Source

Remove custom text property in materials brand section

It was duplicating the sectionName property.

Contributes to issue CURA-6302.
Ghostkeeper 5 years ago
parent
commit
dfeb71992a

+ 1 - 2
resources/qml/Preferences/Materials/MaterialsBrandSection.qml

@@ -1,4 +1,4 @@
-// Copyright (c) 2018 Ultimaker B.V.
+// Copyright (c) 2019 Ultimaker B.V.
 // Cura is released under the terms of the LGPLv3 or higher.
 
 import QtQuick 2.7
@@ -14,7 +14,6 @@ Item
 {
     id: brand_section
 
-    property var text: ""
     property var sectionName: ""
     property var elementsModel   // This can be a MaterialTypesModel or GenericMaterialsModel or FavoriteMaterialsModel
     property var hasMaterialTypes: true  // It indicates wheather it has material types or not

+ 1 - 2
resources/qml/Preferences/Materials/MaterialsList.qml

@@ -1,4 +1,4 @@
-// Copyright (c) 2018 Ultimaker B.V.
+// Copyright (c) 2019 Ultimaker B.V.
 // Uranium is released under the terms of the LGPLv3 or higher.
 
 import QtQuick 2.7
@@ -159,7 +159,6 @@ Item
             delegate: MaterialsBrandSection
             {
                 id: brandSection
-                text: model.name
                 sectionName: model.name
                 elementsModel: model.material_types
                 hasMaterialTypes: true