m_primaryScreen(primaryScreen),
m_posted(false),
m_keyboardHeight(0),
+ m_nativeOrientation(Qt::PrimaryOrientation),
m_platformContext(0)
{
qScreenDebug() << Q_FUNC_INFO;
if (result != 0) {
qFatal("QQnxScreen: failed to query display physical size, errno=%d", errno);
}
+
+ m_nativeOrientation = val[0] >= val[1] ? Qt::LandscapeOrientation : Qt::PortraitOrientation;
+
if (m_currentRotation == 0 || m_currentRotation == 180)
m_currentPhysicalSize = m_initialPhysicalSize = QSize(val[0], val[1]);
else
return static_cast<qreal>(displayMode.refresh);
}
+Qt::ScreenOrientation QQnxScreen::nativeOrientation() const
+{
+ return m_nativeOrientation;
+}
+
Qt::ScreenOrientation QQnxScreen::orientation() const
{
Qt::ScreenOrientation orient;
qreal refreshRate() const;
+ Qt::ScreenOrientation nativeOrientation() const;
Qt::ScreenOrientation orientation() const;
bool isPrimaryScreen() const { return m_primaryScreen; }
int m_keyboardHeight;
QSize m_initialPhysicalSize;
QSize m_currentPhysicalSize;
+ Qt::ScreenOrientation m_nativeOrientation;
QRect m_initialGeometry;
QRect m_currentGeometry;
QPlatformOpenGLContext *m_platformContext;