Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2018-11-22 19:06:56 +0300
committerGhostkeeper <rubend@tutanota.com>2018-11-22 19:06:56 +0300
commit4c26262054877c502e9244d06df9c2dce138c365 (patch)
tree0e1c404ac85497425fcf20c025bd2acd55acf88b
parent7f11142d5086b40164b490d90617a31bf41f63d8 (diff)
Use re-usable TabRow component
Contributes to issue CURA-5876.
-rw-r--r--resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml13
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