bool QQnxNavigatorEventHandler::handleOrientationCheck(int angle) { // reply to navigator that (any) orientation is acceptable // TODO: check if top window flags prohibit orientation change qNavigatorEventHandlerDebug() << Q_FUNC_INFO << "angle=" << angle; return true; }
void QQnxNavigatorEventHandler::handleSwipeDown() { qNavigatorEventHandlerDebug() << Q_FUNC_INFO; QWindow *w = QGuiApplication::focusWindow(); if (w) { // Get the top level window that is ancestor of the focus window while (QWindow *parent = w->parent()) w = parent; QWindowSystemInterface::handlePlatformPanelEvent(w); } }
void QQnxNavigatorEventHandler::handleWindowGroupStateChanged(const QByteArray &id, Qt::WindowState state) { qNavigatorEventHandlerDebug() << Q_FUNC_INFO << id; Q_EMIT windowGroupStateChanged(id, state); }
void QQnxNavigatorEventHandler::handleWindowGroupDeactivated(const QByteArray &id) { qNavigatorEventHandlerDebug() << Q_FUNC_INFO << id; Q_EMIT windowGroupDeactivated(id); }
void QQnxNavigatorEventHandler::handleExit() { // shutdown everything qNavigatorEventHandlerDebug() << Q_FUNC_INFO; QCoreApplication::quit(); }
void QQnxNavigatorEventHandler::handleSwipeDown() { qNavigatorEventHandlerDebug() << Q_FUNC_INFO; Q_EMIT swipeDown(); }
void QQnxNavigatorEventHandler::handleOrientationChange(int angle) { // update screen geometry and reply to navigator that we're ready qNavigatorEventHandlerDebug() << Q_FUNC_INFO << "angle=" << angle; emit rotationChanged(angle); }