daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Aug 17th, 2015 197 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. OrientationSensor {
  2.             id: orientation
  3.             property string teststring: 0
  4.  
  5.             onReadingChanged: {
  6.                 if (reading.orientation == OrientationReading.TopUp)
  7.                 {
  8.                     //myGrid.rows = 1;
  9.                     //myGrid.colums = 2;
  10.                     accelerometer.myTestInteger = 2;
  11.                 }
  12.                 else
  13.                 {
  14.                    // myGrid.rows = 2;
  15.                    // myGrid.colums = 1;
  16.                     accelerometer.myTestInteger = 5;
  17.                 }
  18.             }
  19.         }
RAW Paste Data
Top