Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
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);
    }
}
Exemplo n.º 3
0
void QQnxNavigatorEventHandler::handleWindowGroupStateChanged(const QByteArray &id, Qt::WindowState state)
{
    qNavigatorEventHandlerDebug() << Q_FUNC_INFO << id;
    Q_EMIT windowGroupStateChanged(id, state);
}
Exemplo n.º 4
0
void QQnxNavigatorEventHandler::handleWindowGroupDeactivated(const QByteArray &id)
{
    qNavigatorEventHandlerDebug() << Q_FUNC_INFO << id;
    Q_EMIT windowGroupDeactivated(id);
}
Exemplo n.º 5
0
void QQnxNavigatorEventHandler::handleExit()
{
    // shutdown everything
    qNavigatorEventHandlerDebug() << Q_FUNC_INFO;
    QCoreApplication::quit();
}
Exemplo n.º 6
0
void QQnxNavigatorEventHandler::handleSwipeDown()
{
    qNavigatorEventHandlerDebug() << Q_FUNC_INFO;

    Q_EMIT swipeDown();
}
Exemplo n.º 7
0
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);
}