int MozQOrientationSensorFilter::GetWindowRotationAngle() { #ifdef MOZ_ENABLE_MEEGOTOUCH if (XRE_GetProcessType() == GoannaProcessType_Default) { MWindow* window = MApplication::activeWindow(); if (window) { M::OrientationAngle angle = window->orientationAngle(); if (mWindowRotationAngle != angle) { mWindowRotationAngle = angle; mWindowRotationTransform = QTransform(); mWindowRotationTransform.rotate(mWindowRotationAngle); } } } #endif return mWindowRotationAngle; }