void QMeeGoIntegration::updateScreenOrientation(const QVariant& topEdgeValue)
{
QString edge = topEdgeValue.toString();
- Qt::ScreenOrientation orientation = Qt::UnknownOrientation;
+ Qt::ScreenOrientation orientation = Qt::PrimaryOrientation;
// ### FIXME: This isn't perfect. We should obey the video_route (tv connected) and
// the keyboard slider.
static int orientationAngle(Qt::ScreenOrientation orientation)
{
switch (orientation) {
- case Qt::UnknownOrientation: // Urgh.
+ case Qt::PrimaryOrientation: // Urgh.
case Qt::PortraitOrientation:
return Angle270;
case Qt::LandscapeOrientation:
case Qt::LandscapeOrientation: angle = 0; break;
case Qt::InvertedPortraitOrientation: angle = 90; break;
case Qt::InvertedLandscapeOrientation: angle = 180; break;
- case Qt::UnknownOrientation: break;
+ case Qt::PrimaryOrientation: break;
}
Q_XCB_CALL(xcb_change_property(xcb_connection(), XCB_PROP_MODE_REPLACE, m_window,
atom(QXcbAtom::MeegoTouchOrientationAngle), XCB_ATOM_CARDINAL, 32,