Move contents of ProfileTab to ProfileOverview file

This way it is re-useable, and no longer connected to the concept of a tab view.

We can then display it in the profile manager.

Contributes to issue CURA-8686.
This commit is contained in:
Ghostkeeper 2022-01-25 13:34:13 +01:00
parent 50960ce5cf
commit cfafdf878a
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
4 changed files with 136 additions and 121 deletions

View file

@ -1,5 +1,5 @@
// Copyright (c) 2022 Ultimaker B.V.
// Uranium is released under the terms of the LGPLv3 or higher.
//Copyright (c) 2022 Ultimaker B.V.
//Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.7
import QtQuick.Controls 2.15
@ -521,7 +521,13 @@ Item
Column
{
anchors.fill: parent
id: detailsPanelHeaderColumn
anchors
{
left: parent.left
right: parent.right
top: parent.top
}
spacing: UM.Theme.getSize("default_margin").height
visible: base.currentItem != null
@ -585,6 +591,7 @@ Item
UM.TabRow
{
id: profileExtruderTabs
UM.TabRowButton //One extra tab for the global settings.
{
text: catalog.i18nc("@title:tab", "Global Settings")
@ -601,6 +608,21 @@ Item
}
}
}
Cura.ProfileOverview
{
anchors
{
top: detailsPanelHeaderColumn.bottom
left: parent.left
right: parent.right
bottom: parent.bottom
}
visible: detailsPanelHeaderColumn.visible
qualityItem: base.currentItem
extruderPosition: profileExtruderTabs.currentIndex - 1
}
}
}
}