kind of fix tabs for now
its fucked I dont want to deal with it right now
This commit is contained in:
parent
450ff7a503
commit
8fe50936a0
4 changed files with 13 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
|
||||
TabBar {
|
||||
Container {
|
||||
id: control
|
||||
|
||||
property alias orientation: view.orientation
|
||||
|
|
|
|||
|
|
@ -2,10 +2,11 @@ import qs.config
|
|||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
|
||||
TabButton {
|
||||
Button {
|
||||
id: control
|
||||
|
||||
property alias radius: rectangle.radius
|
||||
|
||||
padding: 8
|
||||
radius: Styling.theme.radiusField
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
pragma ComponentBehavior: Bound
|
||||
|
||||
import qs.components
|
||||
import qs.config
|
||||
import qs.services
|
||||
|
|
@ -20,7 +22,7 @@ StyledPanelWindow {
|
|||
Visibility.configuration = focused;
|
||||
}
|
||||
|
||||
GridLayout {
|
||||
RowLayout {
|
||||
|
||||
anchors.fill: parent
|
||||
|
||||
|
|
@ -40,6 +42,8 @@ StyledPanelWindow {
|
|||
required property ConfigurationView modelData
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
required property int index
|
||||
|
||||
contentItem: RowLayout {
|
||||
states: [
|
||||
State {
|
||||
|
|
@ -62,6 +66,8 @@ StyledPanelWindow {
|
|||
}
|
||||
}
|
||||
text: tabButton.modelData.title
|
||||
|
||||
onClicked: tabs.setCurrentIndex(index)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,12 +30,15 @@ StyledPanelWindow {
|
|||
|
||||
StyledTabButton {
|
||||
text: "Fields"
|
||||
onClicked: tabs.setCurrentIndex(0)
|
||||
}
|
||||
StyledTabButton {
|
||||
text: "Selectors"
|
||||
onClicked: tabs.setCurrentIndex(1)
|
||||
}
|
||||
StyledTabButton {
|
||||
text: "Components"
|
||||
onClicked: tabs.setCurrentIndex(2)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue