Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SDK
Kirigami Gallery
Commits
a2b91d95
Verified
Commit
a2b91d95
authored
Sep 12, 2022
by
ivan tkachenko
Browse files
SliderGallery: Fix layout
Spread vertical sliders along the full width of horizontal ones.
parent
970dec79
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/data/contents/ui/gallery/SliderGallery.qml
View file @
a2b91d95
/*
* Copyright 2015 Marco Martin <mart@kde.org>
* Copyright 2022 ivan tkachenko <me@ratijas.tk>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
...
...
@@ -78,12 +79,11 @@ ScrollablePage {
first.value
:
0
second.value
:
4
}
Item
{
FormData.label
:
"
Vertical Sliders:
"
}
RowLayout
{
spacing
:
Math
.
round
(
normalSlider
.
width
/
3
)
FormData.label
:
"
Vertical Sliders:
"
FormData.labelAlignment
:
Qt
.
AlignTop
Layout.preferredWidth
:
normalSlider
.
width
Controls.Slider
{
id
:
verticalNormalSlider
Layout.minimumWidth
:
2
...
...
@@ -93,6 +93,7 @@ ScrollablePage {
to
:
5.0
orientation
:
Qt
.
Vertical
}
Item
{
Layout.fillWidth
:
true
}
Controls.Slider
{
Layout.minimumWidth
:
2
Layout.minimumHeight
:
Units
.
gridUnit
*
10
...
...
@@ -102,6 +103,7 @@ ScrollablePage {
stepSize
:
1.0
orientation
:
Qt
.
Vertical
}
Item
{
Layout.fillWidth
:
true
}
Controls.RangeSlider
{
Layout.minimumWidth
:
2
Layout.minimumHeight
:
Units
.
gridUnit
*
10
...
...
@@ -114,4 +116,3 @@ ScrollablePage {
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment