summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/main.cpp20
-rwxr-xr-xmkipks1
-rw-r--r--packages1
3 files changed, 20 insertions, 2 deletions
diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp
index 49b41d6..1e5eb46 100644
--- a/core/launcher/main.cpp
+++ b/core/launcher/main.cpp
@@ -66,11 +66,14 @@ void initEnvironment()
QString lang = config.readEntry( "Language", getenv("LANG") );
if ( !lang.isNull() )
setenv( "LANG", lang, 1 );
+
}
int initApplication( int argc, char ** argv )
{
+ struct ODevice *odev = ODevice::inst();
+
initEnvironment();
#if !defined(QT_QWS_CASSIOPEIA) && !defined(QT_QWS_IPAQ) && !defined(QT_QWS_EBX)
@@ -81,7 +84,20 @@ int initApplication( int argc, char ** argv )
QWSServer::setDesktopBackground( QImage() );
DesktopApplication a( argc, argv, QApplication::GuiServer );
- ODevice::inst ( )-> setSoftSuspend ( true );
+ int rot;
+ switch ( odev-> rotation( ) ) {
+ case None:
+ rot = 0;
+ case Rot90:
+ rot = 90;
+ case Rot180:
+ rot = 180;
+ case Rot270:
+ rot = 270;
+ }
+ a.setDefaultRotation( rot );
+
+ odev-> setSoftSuspend ( true );
{ // init backlight
QCopEnvelope e("QPE/System", "setBacklight(int)" );
@@ -124,7 +140,7 @@ int initApplication( int argc, char ** argv )
delete d;
- ODevice::inst ( )-> setSoftSuspend ( false );
+ odev-> setSoftSuspend ( false );
return rv;
}
diff --git a/mkipks b/mkipks
index ffa4ef5..d4e4b38 100755
--- a/mkipks
+++ b/mkipks
@@ -1,6 +1,7 @@
#!/bin/sh
[ -z "$QTE_VERSION" ] && QTE_VERSION=2.3.4
+[ -z "$QTE_BASEVERSION" ] && QTE_BASEVERSION=2.3.4
[ -z "$QTE_REVISION" ] && QTE_REVISION=3
DEB_VERSION=2.0
diff --git a/packages b/packages
index b05f90a..fc26ef8 100644
--- a/packages
+++ b/packages
@@ -8,6 +8,7 @@ CONFIG_DIALUP noncore/unsupported/netsetup/dialup dialup.pro
CONFIG_DICTIONARY noncore/apps/dictionary dictionary.pro
CONFIG_GSMTOOL noncore/comm/gsmtool gsmtool.pro
CONFIG_KEYVIEW development/keyview keyview.pro
+CONFIG_ROTTEST development/rottest rottest.pro
CONFIG_LAN noncore/unsupported/netsetup/lan lan.pro
CONFIG_LIB noncore/unsupported/opiemail/lib lib.pro
CONFIG_LIBFFMPEG core/multimedia/opieplayer/libffmpeg libffmpeg.pro