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
PIM
Kalendar
Commits
152deeca
Commit
152deeca
authored
Sep 28, 2022
by
Claudio Cambra
Browse files
Correct contact editor page strings, add placeholder texts
Signed-off-by:
Claudio Cambra
<
claudio.cambra@gmail.com
>
parent
863b7c9e
Pipeline
#237699
failed with stage
in 2 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contacts/qml/private/ContactEditorPage.qml
View file @
152deeca
...
...
@@ -90,7 +90,7 @@ Kirigami.ScrollablePage {
Akonadi.CollectionComboBox
{
id
:
addressBookComboBox
Kirigami.FormData.label
:
i18n
(
"
Address
B
ook:
"
)
Kirigami.FormData.label
:
i18n
(
"
Address
b
ook:
"
)
Layout.fillWidth
:
true
enabled
:
mode
===
ContactEditor
.
CreateMode
...
...
@@ -148,6 +148,7 @@ Kirigami.ScrollablePage {
Layout.fillWidth
:
true
text
:
contactEditor
.
contact
.
formattedName
onTextChanged
:
contactEditor
.
contact
.
formattedName
=
text
placeholderText
:
i18n
(
"
Contact name
"
)
}
QQC2.Button
{
icon.name
:
'
settings-configure
'
...
...
@@ -158,54 +159,66 @@ Kirigami.ScrollablePage {
}
}
QQC2.ComboBox
{
visible
:
displayAdvancedNameFields
Kirigami.FormData.label
:
i18n
(
"
Honorific prefixes:
"
)
Kirigami.FormData.label
:
i18n
(
"
Honorific prefix:
"
)
editable
:
true
model
:
[
i18n
(
'
Dr.
'
),
i18n
(
"
Miss
"
),
i18n
(
"
Mr.
"
),
i18n
(
"
Mrs.
"
),
i18n
(
"
Ms.
"
),
i18n
(
"
Prof.
"
)]
currentIndex
:
-
1
editText
:
contactEditor
.
contact
.
prefix
onCurrentValueChanged
:
contactEditor
.
contact
.
prefix
=
currentValue
visible
:
displayAdvancedNameFields
}
QQC2.TextField
{
visible
:
displayAdvancedNameFields
Kirigami.FormData.label
:
i18n
(
"
Given names:
"
)
Kirigami.FormData.label
:
i18n
(
"
Given name:
"
)
onTextChanged
:
contactEditor
.
contact
.
givenName
=
text
text
:
contactEditor
.
contact
.
givenName
placeholderText
:
i18n
(
"
First name or chosen name
"
)
visible
:
displayAdvancedNameFields
}
QQC2.TextField
{
visible
:
displayAdvancedNameFields
Kirigami.FormData.label
:
i18n
(
"
Additional names:
"
)
Kirigami.FormData.label
:
i18n
(
"
Additional name:
"
)
onTextChanged
:
contactEditor
.
contact
.
additionalName
=
text
text
:
contactEditor
.
contact
.
additionalName
placeholderText
:
i18n
(
"
Middle name or other name
"
)
visible
:
displayAdvancedNameFields
}
QQC2.TextField
{
visible
:
displayAdvancedNameFields
Kirigami.FormData.label
:
i18n
(
"
Family names:
"
)
Kirigami.FormData.label
:
i18n
(
"
Family name:
"
)
onTextChanged
:
contactEditor
.
contact
.
familyName
=
text
text
:
contactEditor
.
contact
.
familyName
placeholderText
:
i18n
(
"
Surname or last name
"
)
visible
:
displayAdvancedNameFields
}
QQC2.ComboBox
{
visible
:
displayAdvancedNameFields
Kirigami.FormData.label
:
i18n
(
"
Honorific suffixes:
"
)
Kirigami.FormData.label
:
i18n
(
"
Honorific suffix:
"
)
onCurrentValueChanged
:
contactEditor
.
contact
.
suffix
=
currentValue
editable
:
true
editText
:
contactEditor
.
contact
.
suffix
model
:
[
i18n
(
'
I
'
),
i18n
(
"
II
"
),
i18n
(
"
III
"
),
i18n
(
"
Jr.
"
),
i18n
(
"
Sr.
"
)]
currentIndex
:
-
1
visible
:
displayAdvancedNameFields
}
QQC2.TextField
{
visible
:
displayAdvancedNameFields
Kirigami.FormData.label
:
i18n
(
"
Nicknames:
"
)
Kirigami.FormData.label
:
i18n
(
"
Nickname:
"
)
onTextChanged
:
contactEditor
.
contact
.
nickName
=
text
text
:
contactEditor
.
contact
.
nickName
placeholderText
:
i18n
(
"
Alternative name
"
)
visible
:
displayAdvancedNameFields
}
ColumnLayout
{
id
:
phoneNumber
Layout.fillWidth
:
true
...
...
@@ -245,7 +258,7 @@ Kirigami.ScrollablePage {
}
QQC2.TextField
{
id
:
phoneField
text
:
model
.
display
text
:
model
.
display
inputMethodHints
:
Qt
.
ImhDialableCharactersOnly
Layout.fillWidth
:
true
onTextChanged
:
model
.
display
=
text
...
...
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