author | kergoth <kergoth> | 2003-03-26 21:54:15 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-03-26 21:54:15 (UTC) |
commit | 17ac2947f6485a31db216c431fa667192f1fc8a0 (patch) (side-by-side diff) | |
tree | 10ce97adf691c750b71628ea0b2536567a4d593f | |
parent | 8c1acc27882a79ea9f1ee9b9be708b9bbab052ba (diff) | |
download | opie-17ac2947f6485a31db216c431fa667192f1fc8a0.zip opie-17ac2947f6485a31db216c431fa667192f1fc8a0.tar.gz opie-17ac2947f6485a31db216c431fa667192f1fc8a0.tar.bz2 |
Use QObject::tr rather than qApp->translate
-rw-r--r-- | libopie/odevice.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index d5e3c5c..80975c9 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp @@ -275,9 +275,9 @@ void ODevice::init ( ) ODeviceButton b; if (( ib-> model & Model_iPAQ_H36xx ) == Model_iPAQ_H36xx ) { b. setKeycode ( ib-> code ); - b. setUserText ( qApp-> translate ( "Button", ib-> utext )); + 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 ); @@ -633,9 +633,9 @@ void iPAQ::init ( ) ODeviceButton b; if (( ib-> model & d-> m_model ) == d-> m_model ) { b. setKeycode ( ib-> code ); - b. setUserText ( qApp-> translate ( "Button", ib-> utext )); + 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 )); @@ -998,9 +998,9 @@ void Zaurus::init ( ) z_button *zb = z_buttons + i; ODeviceButton b; b. setKeycode ( zb-> code ); - b. setUserText ( qApp-> translate ( "Button", zb-> utext )); + b. setUserText ( QObject::tr ( "Button", zb-> utext )); b. setPixmap ( Resource::loadPixmap ( zb-> pix )); b. setFactoryPresetPressedAction ( OQCopMessage ( makeChannel ( zb-> fpressedservice ), zb-> fpressedaction )); b. setFactoryPresetHeldAction ( OQCopMessage ( makeChannel ( zb-> fheldservice ), zb-> fheldaction )); |