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
bdc512a8
Commit
bdc512a8
authored
Jan 07, 2021
by
Volker Krause
Browse files
Hide fields if they have no content
parent
7ba7cf9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/app/HotelPage.qml
View file @
bdc512a8
...
...
@@ -33,6 +33,7 @@ App.DetailsPage {
App.PlaceDelegate
{
Kirigami.FormData.label
:
i18n
(
"
Location:
"
)
Kirigami.FormData.labelAlignment
:
Qt
.
AlignTop
place
:
reservationFor
controller
:
root
.
controller
}
...
...
@@ -62,10 +63,12 @@ App.DetailsPage {
QQC2.Label
{
Kirigami.FormData.label
:
i18n
(
"
Booking reference:
"
)
text
:
reservation
.
reservationNumber
visible
:
reservation
.
reservationNumber
!=
""
}
QQC2.Label
{
Kirigami.FormData.label
:
i18n
(
"
Under name:
"
)
text
:
reservation
.
underName
.
name
visible
:
reservation
.
underName
.
name
!=
""
}
}
}
src/app/RestaurantPage.qml
View file @
bdc512a8
...
...
@@ -33,6 +33,7 @@ App.DetailsPage {
App.PlaceDelegate
{
Kirigami.FormData.label
:
i18n
(
"
Location:
"
)
Kirigami.FormData.labelAlignment
:
Qt
.
AlignTop
place
:
reservationFor
controller
:
root
.
controller
}
...
...
@@ -40,11 +41,13 @@ App.DetailsPage {
QQC2.Label
{
Kirigami.FormData.label
:
i18n
(
"
Telephone:
"
)
text
:
Util
.
textToHtml
(
reservationFor
.
telephone
)
visible
:
reservationFor
.
telephone
!=
""
onLinkActivated
:
Qt
.
openUrlExternally
(
link
)
}
QQC2.Label
{
Kirigami.FormData.label
:
i18n
(
"
Email:
"
)
text
:
Util
.
textToHtml
(
reservationFor
.
email
)
visible
:
reservationFor
.
email
!=
""
onLinkActivated
:
Qt
.
openUrlExternally
(
link
)
}
...
...
@@ -64,10 +67,12 @@ App.DetailsPage {
QQC2.Label
{
Kirigami.FormData.label
:
i18n
(
"
Booking reference:
"
)
text
:
reservation
.
reservationNumber
visible
:
reservation
.
reservationNumber
!=
""
}
QQC2.Label
{
Kirigami.FormData.label
:
i18n
(
"
Under name:
"
)
text
:
reservation
.
underName
.
name
visible
:
reservation
.
underName
.
name
!=
""
}
}
}
Write
Preview
Supports
Markdown
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