Merge lp:~thomas-moenicke/ubuntu-keyboard/ubuntu-keyboard-fix-symbolstate into lp:ubuntu-keyboard

Proposed by Thomas Moenicke
Status: Merged
Approved by: Günter Schwann
Approved revision: 64
Merged at revision: 66
Proposed branch: lp:~thomas-moenicke/ubuntu-keyboard/ubuntu-keyboard-fix-symbolstate
Merge into: lp:ubuntu-keyboard
Diff against target: 37 lines (+2/-9)
1 file modified
qml/KeyboardContainer.qml (+2/-9)
To merge this branch: bzr merge lp:~thomas-moenicke/ubuntu-keyboard/ubuntu-keyboard-fix-symbolstate
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Günter Schwann (community) Approve
Review via email: mp+189852@code.launchpad.net

Commit message

fixes #1236501 wrong layout when symbols

Description of the change

fixes #1236501 wrong layout when symbols

To post a comment you must log in.
Revision history for this message
Günter Schwann (schwann) wrote :

17 + onLoaded: activeKeypadState = "NORMAL"

This looks "fishy".
So even when loading the symbols, the state is the set to normal?
And the binding for the state gets lost.

Sure this is correct?

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
64. By Thomas Moenicke

activeKeypadState is set all over the place and shouldnt be a binding

Revision history for this message
Günter Schwann (schwann) wrote :

lgtm

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/KeyboardContainer.qml'
2--- qml/KeyboardContainer.qml 2013-10-02 17:58:00 +0000
3+++ qml/KeyboardContainer.qml 2013-10-08 14:05:44 +0000
4@@ -26,7 +26,7 @@
5 property int keyHeight: 0
6
7 property Item activeKeypad: characterKeypadLoader.item
8- property string activeKeypadState: characterKeypadLoader.item ? item.state : ""
9+ property string activeKeypadState: "NORMAL"
10 property string characterKeypadSource: ""
11 property string symbolKeypadSource: activeKeypad ? activeKeypad.symbols : ""
12
13@@ -61,6 +61,7 @@
14 anchors.fill: parent
15 asynchronous: false
16 source: panel.state === "CHARACTERS" ? characterKeypadSource : symbolKeypadSource
17+ onLoaded: activeKeypadState = "NORMAL"
18 }
19 ExtendedKeysSelector {
20 id: extendedKeysSelector
21@@ -75,17 +76,9 @@
22 states: [
23 State {
24 name: "CHARACTERS"
25- PropertyChanges {
26- target: panel
27- activeKeypad: characterKeypadLoader.item
28- }
29 },
30 State {
31 name: "SYMBOLS"
32- PropertyChanges {
33- target: panel
34- activeKeypad: symbolKeypadLoader.item
35- }
36 }
37 ]
38

Subscribers

People subscribed via source and target branches