Hi,

I have uploaded to http://github.com/wolfmanjm/qtrotate an example program 
using my RotateHelper 
class that auto rotates the screen based on the device orientation.

The two files rotate.h and rotate.cpp are designed to be self contained, so it 
is easy to add auto 
rotate to any qtmoko program, with a few lines of code.

See the README and included here...

A simple self contained routine that will enable a QTE app to rotate
the screen depending on orientation

To use...
#include "rotate.h"

// create an instance of RotateHelper

RotateHelper *rh= new RotateHelper();

// then start it off..

rh->start(); // the default sample rate is 500ms

// to stop it...
rh->stop();

// to restore to upright...
rh->restore();

The only files you need to put in your project are rotate.h and rotate.cpp


-- 
Jim Morris, http://blog.wolfman.com

_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community

Reply via email to