author | kergoth <kergoth> | 2003-04-01 02:15:50 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-04-01 02:15:50 (UTC) |
commit | e74e3a64223b5b57ca0c23c77ba06c63e648f09a (patch) (side-by-side diff) | |
tree | a3783391e604a49a52d9cbb8d9934ad6f1f8f415 | |
parent | f23b042e2ac0a8b31a51c1059dee281156dd5ce9 (diff) | |
download | opie-e74e3a64223b5b57ca0c23c77ba06c63e648f09a.zip opie-e74e3a64223b5b57ca0c23c77ba06c63e648f09a.tar.gz opie-e74e3a64223b5b57ca0c23c77ba06c63e648f09a.tar.bz2 |
Set appropriate default rotation for SL-A300.
-rw-r--r-- | libopie/odevice.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 377945d..55ba7bd 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp @@ -994,53 +994,55 @@ void Zaurus::init ( ) f. setName ( "/proc/deviceinfo/product" ); if ( f. open ( IO_ReadOnly ) ) { QTextStream ts ( &f ); QString model = ts. readLine ( ); f. close ( ); d-> m_modelstr = QString("Zaurus ") + model; if ( model == "SL-5500" ) d-> m_model = Model_Zaurus_SL5500; else if ( model == "SL-C700" ) d-> m_model = Model_Zaurus_SLC700; else if ( model == "SL-A300" ) d-> m_model = Model_Zaurus_SLA300; else if ( model == "SL-B600" || model == "SL-5600" ) d-> m_model = Model_Zaurus_SLB600; else d-> m_model = Model_Zaurus_SL5000; } else { d-> m_model = Model_Zaurus_SL5000; d-> m_modelstr = "Zaurus (model unknown)"; } switch ( d-> m_model ) { + case Model_Zaurus_SLA300: + d-> m_rotation = Rot0; + break; case Model_Zaurus_SLC700: /* note for C700, we must check the display rotation * sensor to set an appropriate value */ - case Model_Zaurus_SLA300: case Model_Zaurus_SLB600: case Model_Zaurus_SL5500: case Model_Zaurus_SL5000: default: d-> m_rotation = Rot270; break; } m_leds [0] = Led_Off; } void Zaurus::initButtons ( ) { if ( d-> m_buttons ) return; d-> m_buttons = new QValueList <ODeviceButton>; for ( uint i = 0; i < ( sizeof( z_buttons ) / sizeof( z_button )); i++ ) { z_button *zb = z_buttons + i; ODeviceButton b; b. setKeycode ( zb-> code ); b. setUserText ( QObject::tr ( "Button", zb-> utext )); b. setPixmap ( Resource::loadPixmap ( zb-> pix )); |