summaryrefslogtreecommitdiff
authorchicken <chicken>2005-03-11 15:01:26 (UTC)
committer chicken <chicken>2005-03-11 15:01:26 (UTC)
commit3dc7db665775377453f999a3eaee8c225af45a79 (patch) (side-by-side diff)
treecec1afc6b0747d9cf2a0117144c158ca3cb18ef6
parent5a5ced8a374777be21e05359bacb39da90fda8c8 (diff)
downloadopie-3dc7db665775377453f999a3eaee8c225af45a79.zip
opie-3dc7db665775377453f999a3eaee8c225af45a79.tar.gz
opie-3dc7db665775377453f999a3eaee8c225af45a79.tar.bz2
jornada 56x device updates
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_jornada.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libopie2/opiecore/device/odevice_jornada.cpp b/libopie2/opiecore/device/odevice_jornada.cpp
index bcde425..3acba03 100644
--- a/libopie2/opiecore/device/odevice_jornada.cpp
+++ b/libopie2/opiecore/device/odevice_jornada.cpp
@@ -145,33 +145,38 @@ void Jornada::initButtons()
if (( ib->model & d->m_model ) == d->m_model ) {
b. setKeycode ( ib->code );
b. setUserText ( QObject::tr ( "Button", ib->utext ));
b. setPixmap ( Resource::loadPixmap ( ib->pix ));
b. setFactoryPresetPressedAction ( OQCopMessage ( makeChannel ( ib->fpressedservice ), ib->fpressedaction ));
b. setFactoryPresetHeldAction ( OQCopMessage ( makeChannel ( ib->fheldservice ), ib->fheldaction ));
d->m_buttons->append ( b );
}
}
reloadButtonMapping();
}
int Jornada::displayBrightnessResolution() const
{
+ if ( d->m_model == Model_Jornada_56x )
+ return 190;
+ else if (d->m_model == Model_Jornada_720 )
return 255;
+ else
+ return 0;
}
bool Jornada::setDisplayBrightness( int bright )
{
bool res = false;
if ( bright > 255 )
bright = 255;
if ( bright < 0 )
bright = 0;
QString cmdline;
if ( d->m_model == Model_Jornada_56x ) {
if ( !bright )