Merge lp:~pat-mcgowan/messaging-app/revert-counts into lp:messaging-app

Proposed by Pat McGowan
Status: Merged
Approved by: Bill Filler
Approved revision: 593
Merged at revision: 593
Proposed branch: lp:~pat-mcgowan/messaging-app/revert-counts
Merge into: lp:messaging-app
Diff against target: 41 lines (+7/-5)
2 files modified
src/qml/ComposeBar.qml (+3/-1)
src/qml/SettingsPage.qml (+4/-4)
To merge this branch: bzr merge lp:~pat-mcgowan/messaging-app/revert-counts
Reviewer Review Type Date Requested Status
Tiago Salem Herrmann (community) Approve
Ubuntu Phablet Team Pending
Review via email: mp+304505@code.launchpad.net

Commit message

The character count logic is much more complex and needs to account for escape characters and different encoding schemes that change the counts.
For now this hides the elements that were added. Anyone who turned it on will no longer see them.

Description of the change

The character count logic is much more complex and needs to account for escape characters and different encoding schemes that change the counts.
For now this hides the elements that were added. Anyone who turned it on will no longer see them.

To post a comment you must log in.
Revision history for this message
Tiago Salem Herrmann (tiagosh) wrote :

code looks good.
thank you.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/qml/ComposeBar.qml'
2--- src/qml/ComposeBar.qml 2016-08-19 15:15:09 +0000
3+++ src/qml/ComposeBar.qml 2016-08-31 13:58:42 +0000
4@@ -462,7 +462,9 @@
5 fontSize: "small"
6 font.italic: messageTextArea.inputMethodComposing && (attachments.count == 0) && !usingMMS
7 color: Theme.palette.normal.backgroundTertiaryText
8- visible: msgSettings.showCharacterCount && (messageTextArea.lineCount > 1)
9+ // hide this option for now
10+ //visible: msgSettings.showCharacterCount && (messageTextArea.lineCount > 1)
11+ visible: false
12 }
13
14 }
15
16=== modified file 'src/qml/SettingsPage.qml'
17--- src/qml/SettingsPage.qml 2016-08-19 15:14:50 +0000
18+++ src/qml/SettingsPage.qml 2016-08-31 13:58:42 +0000
19@@ -25,18 +25,18 @@
20 title: i18n.tr("Settings")
21
22 property var setMethods: {
23- "mmsGroupChatEnabled": function(value) { telepathyHelper.mmsGroupChat = value },
24- "characterCountEnabled": function(value) { msgSettings.showCharacterCount = value }
25+ "mmsGroupChatEnabled": function(value) { telepathyHelper.mmsGroupChat = value }/*,
26+ "characterCountEnabled": function(value) { msgSettings.showCharacterCount = value }*/
27 }
28 property var settingsModel: [
29 { "name": "mmsGroupChatEnabled",
30 "description": i18n.tr("Enable MMS group chat"),
31 "property": telepathyHelper.mmsGroupChat
32- },
33+ }/*,
34 { "name": "characterCountEnabled",
35 "description": i18n.tr("Show character count"),
36 "property": msgSettings.showCharacterCount
37- }
38+ }*/
39 ]
40
41 // These fake items are used to track if there are instances loaded

Subscribers

People subscribed via source and target branches