-rw-r--r-- | library/qpeapplication.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/library/qpeapplication.h b/library/qpeapplication.h index 00d3d31..849d5b3 100644 --- a/library/qpeapplication.h +++ b/library/qpeapplication.h @@ -207,25 +207,38 @@ inline Transformation DegToTrans ( int d ) * and 2) does not set deforient or save orientation to qpe.conf. */ inline void QPEApplication::setCurrentRotation( int r ) { // setTransformation has been introduced in Qt/Embedded 2.3.4 snapshots // for compatibility with the SharpROM use fallback to setDefaultTransformation() #if QT_VERSION > 233 Transformation e = DegToTrans( r ); ::setenv( "QWS_DISPLAY", QString( "Transformed:Rot%1:0" ).arg( r ).latin1(), 1 ); qApp->desktop()->qwsDisplay()->setTransformation( e ); #else setDefaultRotation( r ); #endif } +/* + * Qtopia 1.7 SDK compatibility macros + * FIXME: Support Opie Quicklaunch Interface + */ +#define QTOPIA_ADD_APPLICATION(NAME,IMPLEMENTATION) \ + int main( int argc, char** argv ) \ + { \ + QPEApplication app = QPEApplication( argc, argv ); \ + IMPLEMENTATION* mw = new IMPLEMENTATION(); \ + app.showMainWidget( mw ); \ + app.exec(); \ + } +#define QTOPIA_MAIN // Bee-Bop-Alula /* * -remove me */ #ifdef Q_WS_QWS extern Q_EXPORT QRect qt_maxWindowRect; #endif #endif |