use pane on items
This commit is contained in:
parent
162f8f6b6f
commit
a10c2f0254
2 changed files with 46 additions and 19 deletions
|
|
@ -1,29 +1,42 @@
|
||||||
import qs.components
|
import qs.components
|
||||||
import qs.config
|
import qs.config
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
|
||||||
GridLayout {
|
ColumnLayout {
|
||||||
flow: GridLayout.TopToBottom
|
|
||||||
columns: 2
|
spacing: Styling.layout.spacing.xl
|
||||||
rows: 10
|
|
||||||
|
ColumnLayout {
|
||||||
|
StyledText {
|
||||||
|
text: "Button"
|
||||||
|
font.pixelSize: 18
|
||||||
|
}
|
||||||
|
StyledPane {
|
||||||
|
StyledButton {
|
||||||
|
text: "Button"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
StyledText {
|
StyledText {
|
||||||
text: "Icon Button"
|
text: "Icon Button"
|
||||||
font.pixelSize: 18
|
font.pixelSize: 18
|
||||||
}
|
}
|
||||||
|
StyledPane {
|
||||||
StyledIconButton {
|
StyledIconButton {
|
||||||
text: Styling.lucide.icons.square
|
text: Styling.lucide.icons.square
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
StyledText {
|
StyledText {
|
||||||
text: "Slider"
|
text: "Slider"
|
||||||
font.pixelSize: 18
|
font.pixelSize: 18
|
||||||
}
|
}
|
||||||
|
StyledPane {
|
||||||
StyledSlider {
|
StyledSlider {
|
||||||
id: slider
|
id: slider
|
||||||
from: 0
|
from: 0
|
||||||
|
|
@ -32,3 +45,9 @@ GridLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
component FieldElement: QtObject {
|
||||||
|
property string title
|
||||||
|
property Component component
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,15 +27,17 @@ StyledPanelWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
Item {
|
||||||
id: layout
|
id: layout
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
spacing: 0
|
|
||||||
|
|
||||||
StyledTabBar {
|
StyledTabBar {
|
||||||
id: tabs
|
id: tabs
|
||||||
Layout.fillWidth: true
|
anchors.top: parent.top
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.bottom: stack.top
|
||||||
|
|
||||||
StyledTabButton {
|
StyledTabButton {
|
||||||
text: "Fields"
|
text: "Fields"
|
||||||
}
|
}
|
||||||
|
|
@ -48,20 +50,26 @@ StyledPanelWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
StackLayout {
|
StackLayout {
|
||||||
|
id: stack
|
||||||
|
|
||||||
|
anchors.top: tabs.bottom
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
|
||||||
currentIndex: tabs.currentIndex
|
currentIndex: tabs.currentIndex
|
||||||
|
|
||||||
ScrollView {
|
ScrollView {
|
||||||
Layout.maximumHeight: 400
|
Layout.fillWidth: true
|
||||||
padding: 36
|
padding: 36
|
||||||
Fields {}
|
Fields {}
|
||||||
}
|
}
|
||||||
ScrollView {
|
ScrollView {
|
||||||
Layout.maximumHeight: 400
|
|
||||||
padding: 36
|
padding: 36
|
||||||
Selectors {}
|
Selectors {}
|
||||||
}
|
}
|
||||||
ScrollView {
|
ScrollView {
|
||||||
Layout.maximumHeight: 400
|
Layout.fillWidth: true
|
||||||
padding: 36
|
padding: 36
|
||||||
Components {}
|
Components {}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue