View Single Post
qwazix's Avatar
Moderator | Posts: 2,622 | Thanked: 5,447 times | Joined on Jan 2010
#26
If you want to switch quick between two layouts, insert this
Code:
        KeyBase {
            Image{
                source: "globe.png";
                anchors.centerIn: parent;        
            }
            onClicked: {canvas.layoutRow.switchLayout(0); canvas.updateIMArea()}
            width: punctuationKeyWidthNarrow
        }
in your spacebar row in both layouts you want. Don't forget to change the number to your target layout in each one.

I'm sure it can be automated so that it can be inserted once in the SpaceBarRow.qml and toggle between any two layouts, but it works for me as is, so I'm leaving the better implementation as an exercise for the reader :-P
Attached Images
 
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jolla –– contactlaunch –– timenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
 

The Following 8 Users Say Thank You to qwazix For This Useful Post: