forked from qt-creator/qt-creator
HTML5: Make wizard work with Qt 5
Change-Id: I465cb1ae5fa94cc81441d45ac4e0afe1d9245fa8 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user