diff options
author | Ghostkeeper <rubend@tutanota.com> | 2018-11-22 19:06:56 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2018-11-22 19:06:56 +0300 |
commit | 4c26262054877c502e9244d06df9c2dce138c365 (patch) | |
tree | 0e1c404ac85497425fcf20c025bd2acd55acf88b | |
parent | 7f11142d5086b40164b490d90617a31bf41f63d8 (diff) |
Use re-usable TabRow component
Contributes to issue CURA-5876.
-rw-r--r-- | resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml b/resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml index d424f35ebe..50ff108431 100644 --- a/resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml +++ b/resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml @@ -29,22 +29,19 @@ Item } } - TabBar + UM.TabRow { id: tabBar - onCurrentIndexChanged: Cura.ExtruderManager.setActiveExtruderIndex(currentIndex) anchors.top: header.bottom anchors.topMargin: UM.Theme.getSize("default_margin").height - width: parent.width - height: 50 + + onCurrentIndexChanged: Cura.ExtruderManager.setActiveExtruderIndex(currentIndex) + Repeater { model: extrudersModel - - delegate: TabButton + delegate: UM.TabRowButton { - width: ListView.view != null ? Math.round(ListView.view.width / extrudersModel.rowCount()): 0 - height: parent.height contentItem: Item { Cura.ExtruderIcon |