Merge lp:~renatofilho/address-book-app/input-hint into lp:address-book-app

Proposed by Renato Araujo Oliveira Filho
Status: Superseded
Proposed branch: lp:~renatofilho/address-book-app/input-hint
Merge into: lp:address-book-app
Diff against target: 69 lines (+7/-0)
5 files modified
src/imports/ContactEdit/ContactDetailEmailsEditor.qml (+1/-0)
src/imports/ContactEdit/ContactDetailGroupWithTypeEditor.qml (+2/-0)
src/imports/ContactEdit/ContactDetailOnlineAccountsEditor.qml (+1/-0)
src/imports/ContactEdit/ContactDetailPhoneNumbersEditor.qml (+1/-0)
src/imports/ContactEdit/ContactDetailWithTypeEditor.qml (+2/-0)
To merge this branch: bzr merge lp:~renatofilho/address-book-app/input-hint
Reviewer Review Type Date Requested Status
Bill Filler (community) Abstain
Tiago Salem Herrmann (community) Needs Information
PS Jenkins bot continuous-integration Approve
Review via email: mp+180759@code.launchpad.net

This proposal has been superseded by a proposal from 2013-09-06.

Commit message

Used the correct input hint for each input field.

To post a comment you must log in.
52. By Renato Araujo Oliveira Filho

Used the correct input hint for each input field.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Tiago Salem Herrmann (tiagosh) wrote :

Using Qt.ImhDialableCharactersOnly prevents the user to add some common phone number characters, like parentheses, comma and hyphen. Also, the button '+*' in the osk does not work at all.

review: Needs Information
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

> Using Qt.ImhDialableCharactersOnly prevents the user to add some common phone
> number characters, like parentheses, comma and hyphen. Also, the button '+*'
> in the osk does not work at all.

I do not think the parentheses, comma and hyphen should be accepted. Since they are not DialableCharacters. As the enum says.

About the "+*" there is a related bug report on Qt: https://bugreports.qt-project.org/browse/QTBUG-13696

Revision history for this message
Tiago Salem Herrmann (tiagosh) wrote :

In general we normalize the phone numbers before making calls. So the non diable characters wouldn't be a problem.
It is commom to use () for area codes. IMO we should allow users to enter those chars
Also, comma should be considered as diable, it means to stop a second before dialing the next numbers, used mostly to call extensions IIRC.

Revision history for this message
Bill Filler (bfiller) wrote :

I think the MR is fine, but the OSK layout is totally broken for phone numbers, both in layout and certain characters not working. Lets hold off on landing this until the OSK is fixed.

review: Abstain
Revision history for this message
Bill Filler (bfiller) wrote :

btw, the email layout seems ok but not sure it's worth reverting the phone number code or just wait till osk fixed

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/imports/ContactEdit/ContactDetailEmailsEditor.qml'
2--- src/imports/ContactEdit/ContactDetailEmailsEditor.qml 2013-07-25 21:16:28 +0000
3+++ src/imports/ContactEdit/ContactDetailEmailsEditor.qml 2013-08-19 02:53:53 +0000
4@@ -25,4 +25,5 @@
5 detailType: QtContacts.ContactDetail.Email
6 fields: [ 0 ]
7 placeholderTexts: [ i18n.tr("Enter an email address") ]
8+ inputMethodHints: Qt.ImhEmailCharactersOnly
9 }
10
11=== modified file 'src/imports/ContactEdit/ContactDetailGroupWithTypeEditor.qml'
12--- src/imports/ContactEdit/ContactDetailGroupWithTypeEditor.qml 2013-07-26 00:19:09 +0000
13+++ src/imports/ContactEdit/ContactDetailGroupWithTypeEditor.qml 2013-08-19 02:53:53 +0000
14@@ -28,6 +28,7 @@
15 property int currentItem: -1
16 property int fieldType: QtContacts.ContactDetail.FieldContext
17 property variant placeholderTexts: []
18+ property variant inputMethodHints
19
20 function save() {
21 var changed = false
22@@ -137,6 +138,7 @@
23 height: implicitHeight
24 width: root.width
25
26+ inputMethodHints: root.inputMethodHints
27 onDetailChanged: updateCombo(false)
28
29 // this is necessary due the default property of ListItem.Empty
30
31=== modified file 'src/imports/ContactEdit/ContactDetailOnlineAccountsEditor.qml'
32--- src/imports/ContactEdit/ContactDetailOnlineAccountsEditor.qml 2013-07-31 19:36:55 +0000
33+++ src/imports/ContactEdit/ContactDetailOnlineAccountsEditor.qml 2013-08-19 02:53:53 +0000
34@@ -27,4 +27,5 @@
35 fields: [ QtContacts.OnlineAccount.AccountUri ]
36 placeholderTexts: [ i18n.tr("Enter a social alias") ]
37 typeModel: ContactDetailOnlineAccountTypeModel { }
38+ inputMethodHints: Qt.ImhEmailCharactersOnly
39 }
40
41=== modified file 'src/imports/ContactEdit/ContactDetailPhoneNumbersEditor.qml'
42--- src/imports/ContactEdit/ContactDetailPhoneNumbersEditor.qml 2013-07-31 19:36:55 +0000
43+++ src/imports/ContactEdit/ContactDetailPhoneNumbersEditor.qml 2013-08-19 02:53:53 +0000
44@@ -27,4 +27,5 @@
45 fields: [ QtContacts.PhoneNumber.Number ]
46 placeholderTexts: [ i18n.tr("Enter a number") ]
47 typeModel: ContactDetailPhoneNumberTypeModel { }
48+ inputMethodHints: Qt.ImhDialableCharactersOnly
49 }
50
51=== modified file 'src/imports/ContactEdit/ContactDetailWithTypeEditor.qml'
52--- src/imports/ContactEdit/ContactDetailWithTypeEditor.qml 2013-07-26 00:19:09 +0000
53+++ src/imports/ContactEdit/ContactDetailWithTypeEditor.qml 2013-08-19 02:53:53 +0000
54@@ -29,6 +29,7 @@
55 property int fieldType: -1
56 property alias selectedTypeIndex: detailTypeSelector.currentIndex
57 property variant placeholderTexts: []
58+ property var inputMethodHints
59
60 function selectType(type) {
61 detailTypeSelector.selectItem(type)
62@@ -98,6 +99,7 @@
63 detail: root.detail
64 field: modelData
65 placeholderText: root.placeholderTexts[index]
66+ inputMethodHints: root.inputMethodHints
67
68 anchors {
69 left: parent.left

Subscribers

People subscribed via source and target branches