- OrientationSensor {
- id: orientation
- property string teststring: 0
- onReadingChanged: {
- if (reading.orientation == OrientationReading.TopUp)
- {
- //myGrid.rows = 1;
- //myGrid.colums = 2;
- accelerometer.myTestInteger = 2;
- }
- else
- {
- // myGrid.rows = 2;
- // myGrid.colums = 1;
- accelerometer.myTestInteger = 5;
- }
- }
- }
SHARE
TWEET
Untitled
a guest
Aug 17th, 2015
197
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data
