HTML5: Make wizard work with Qt 5

Change-Id: I465cb1ae5fa94cc81441d45ac4e0afe1d9245fa8
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2013-02-08 10:30:24 +01:00
parent d0587c951f
commit 28b9f0f3d6
4 changed files with 9 additions and 4 deletions

View File

@@ -154,7 +154,7 @@ void Html5ApplicationViewer::setOrientation(ScreenOrientation orientation)
case ScreenOrientationAuto:
attribute = static_cast<Qt::WidgetAttribute>(130);
break;
#else // QT_VERSION < 0x040702
#elif QT_VERSION < 0x050000
case ScreenOrientationLockPortrait:
attribute = Qt::WA_LockPortraitOrientation;
break;
@@ -165,7 +165,10 @@ void Html5ApplicationViewer::setOrientation(ScreenOrientation orientation)
case ScreenOrientationAuto:
attribute = Qt::WA_AutoOrientation;
break;
#endif // QT_VERSION < 0x040702
#else
default:
attribute = Qt::WidgetAttribute();
#endif
};
setAttribute(attribute, true);
}