Merge lp:~bfiller/address-book-app/input-hints into lp:address-book-app

Proposed by Bill Filler
Status: Superseded
Proposed branch: lp:~bfiller/address-book-app/input-hints
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:~bfiller/address-book-app/input-hints
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Bill Filler Pending
Tiago Salem Herrmann Pending
Review via email: mp+184232@code.launchpad.net

This proposal supersedes a proposal from 2013-08-19.

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

Commit message

merge latest from trunk

Description of the change

merge latest from trunk

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Approve (continuous-integration)
Revision history for this message
Tiago Salem Herrmann (tiagosh) wrote : Posted in a previous version of this proposal

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 : Posted in a previous version of this proposal

> 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 : Posted in a previous version of this proposal

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 : Posted in a previous version of this proposal

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 : Posted in a previous version of this proposal

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

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

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-09-06 05:01:56 +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-09-06 05:01:56 +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-09-06 05:01:56 +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-09-06 05:01:56 +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-08-28 17:06:38 +0000
53+++ src/imports/ContactEdit/ContactDetailWithTypeEditor.qml 2013-09-06 05:01:56 +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@@ -106,6 +107,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