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
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
|
|
||||||
TabBar {
|
Container {
|
||||||
id: control
|
id: control
|
||||||
|
|
||||||
property alias orientation: view.orientation
|
property alias orientation: view.orientation
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,11 @@ import qs.config
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
|
|
||||||
TabButton {
|
Button {
|
||||||
id: control
|
id: control
|
||||||
|
|
||||||
property alias radius: rectangle.radius
|
property alias radius: rectangle.radius
|
||||||
|
|
||||||
padding: 8
|
padding: 8
|
||||||
radius: Styling.theme.radiusField
|
radius: Styling.theme.radiusField
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
pragma ComponentBehavior: Bound
|
||||||
|
|
||||||
import qs.components
|
import qs.components
|
||||||
import qs.config
|
import qs.config
|
||||||
import qs.services
|
import qs.services
|
||||||
|
|
@ -20,7 +22,7 @@ StyledPanelWindow {
|
||||||
Visibility.configuration = focused;
|
Visibility.configuration = focused;
|
||||||
}
|
}
|
||||||
|
|
||||||
GridLayout {
|
RowLayout {
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
|
|
@ -40,6 +42,8 @@ StyledPanelWindow {
|
||||||
required property ConfigurationView modelData
|
required property ConfigurationView modelData
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
required property int index
|
||||||
|
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
states: [
|
states: [
|
||||||
State {
|
State {
|
||||||
|
|
@ -62,6 +66,8 @@ StyledPanelWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text: tabButton.modelData.title
|
text: tabButton.modelData.title
|
||||||
|
|
||||||
|
onClicked: tabs.setCurrentIndex(index)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,12 +30,15 @@ StyledPanelWindow {
|
||||||
|
|
||||||
StyledTabButton {
|
StyledTabButton {
|
||||||
text: "Fields"
|
text: "Fields"
|
||||||
|
onClicked: tabs.setCurrentIndex(0)
|
||||||
}
|
}
|
||||||
StyledTabButton {
|
StyledTabButton {
|
||||||
text: "Selectors"
|
text: "Selectors"
|
||||||
|
onClicked: tabs.setCurrentIndex(1)
|
||||||
}
|
}
|
||||||
StyledTabButton {
|
StyledTabButton {
|
||||||
text: "Components"
|
text: "Components"
|
||||||
|
onClicked: tabs.setCurrentIndex(2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue