Browse Source

Remove unused fontMetrics objects

CURA-8762
Jaime van Kessel 3 years ago
parent
commit
a36fedabe5
1 changed files with 3 additions and 16 deletions
  1. 3 16
      plugins/Marketplace/resources/qml/Marketplace.qml

+ 3 - 16
plugins/Marketplace/resources/qml/Marketplace.qml

@@ -101,8 +101,8 @@ Window
             // Search & Top-Level Tabs
             Item
             {
-                Layout.preferredHeight: childrenRect.height
-                Layout.preferredWidth: parent.width - 2 * UM.Theme.getSize("default_margin").width
+                implicitHeight: childrenRect.height
+                implicitWidth: parent.width - 2 * UM.Theme.getSize("default_margin").width
                 Layout.alignment: Qt.AlignHCenter
                 RowLayout
                 {
@@ -113,7 +113,7 @@ Window
                     Cura.SearchBar
                     {
                         id: searchBar
-                        Layout.preferredHeight: UM.Theme.getSize("button_icon").height
+                        implicitHeight: UM.Theme.getSize("button_icon").height
                         Layout.fillWidth: true
                         onTextEdited: searchStringChanged(text)
                     }
@@ -174,19 +174,6 @@ Window
                             }
                         }
                     }
-
-                    TextMetrics
-                    {
-                        id: pluginTabTextMetrics
-                        text: pluginTabText.text
-                        font: pluginTabText.font
-                    }
-                    TextMetrics
-                    {
-                        id: materialsTabTextMetrics
-                        text: materialsTabText.text
-                        font: materialsTabText.font
-                    }
                 }
             }