// Copyright (c) 2019 Ultimaker B.V. // Cura is released under the terms of the LGPLv3 or higher. import QtQuick 2.12 import QtQuick.Controls 1.4 import QtQuick.Controls 2.3 as Controls2 import QtQuick.Controls.Styles 1.4 import QtQuick.Layouts 1.15 import UM 1.2 as UM import Cura 1.6 as Cura import ".." Item { id: qualityRow height: childrenRect.height property real labelColumnWidth: Math.round(width / 3) property real settingsColumnWidth: width - labelColumnWidth // Here are the elements that are shown in the left column Column { spacing: UM.Theme.getSize("default_margin").height anchors{ left: parent.left right: parent.right } Label { text: catalog.i18nc("@label", "Profiles") font: UM.Theme.getFont("medium") } Controls2.TabBar { id: intentSelection width: parent.width height: UM.Theme.getSize("recomended_quality_tab").height spacing: UM.Theme.getSize("narrow_margin").width Repeater { model: Cura.IntentCategoryModel{} Controls2.TabButton{ id: "intentCategoryButton" anchors.verticalCenter:parent.verticalCenter height: parent.height background: Rectangle{ color: (intentSelection.currentIndex==index) ? UM.Theme.getColor("setting_category_hover") : UM.Theme.getColor("main_background") } // function getFirstAvailableQuality(qualities){ // console.log(qualities) // for(var i=0;i