Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Itinerary
Commits
ed272e3f
Commit
ed272e3f
authored
Jan 05, 2022
by
Volker Krause
Browse files
Fix spacing for the stop picker controls
parent
c6852030
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/StopPickerPage.qml
View file @
ed272e3f
...
...
@@ -61,9 +61,13 @@ Kirigami.ScrollablePage {
}
]
header
:
ColumnLayout
{
spacing
:
Kirigami
.
Units
.
smallSpacing
QQC2.ComboBox
{
id
:
countryCombo
spacing
:
Kirigami
.
Units
.
smallSpacing
Layout.topMargin
:
Kirigami
.
Units
.
smallSpacing
Layout.leftMargin
:
Kirigami
.
Units
.
smallSpacing
Layout.rightMargin
:
Kirigami
.
Units
.
smallSpacing
Layout.fillWidth
:
true
model
:
{
var
countries
=
new
Array
();
for
(
const
b
of
publicTransportManager
.
backends
)
{
...
...
@@ -80,7 +84,6 @@ Kirigami.ScrollablePage {
}
return
[...
new
Set
(
countries
)].
sort
((
lhs
,
rhs
)
=>
{
return
Country
.
fromAlpha2
(
lhs
).
name
.
localeCompare
(
Country
.
fromAlpha2
(
rhs
).
name
);
});
}
Layout.fillWidth
:
true
readonly
property
var
currentCountry
:
Country
.
fromAlpha2
(
currentValue
)
displayText
:
currentCountry
.
emojiFlag
+
'
'
+
currentCountry
.
name
delegate
:
QQC2.ItemDelegate
{
...
...
@@ -96,6 +99,9 @@ Kirigami.ScrollablePage {
}
Kirigami.SearchField
{
id
:
queryTextField
Layout.leftMargin
:
Kirigami
.
Units
.
smallSpacing
Layout.rightMargin
:
Kirigami
.
Units
.
smallSpacing
Layout.bottomMargin
:
Kirigami
.
Units
.
smallSpacing
Layout.fillWidth
:
true
onAccepted
:
{
if
(
text
!==
""
&&
countryCombo
.
currentValue
!==
""
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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