コード例 #1
0
void InputContext::setVisible(bool value)
{
    if (mVisible != value) {
	mVisible = value;
	emitInputPanelVisibleChanged();
	emit visibleChanged();
    }
}
コード例 #2
0
void QQnxInputContext::keyboardVisibilityChanged(bool visible)
{
    qInputContextDebug() << Q_FUNC_INFO << "visible=" << visible;
    if (m_inputPanelVisible != visible) {
        m_inputPanelVisible = visible;
        emitInputPanelVisibleChanged();
    }
}
コード例 #3
0
void QMaliitPlatformInputContext::showInputPanel()
{
    if (debug)
        qDebug() << "showInputPanel";

    if (!inputMethodAccepted())
        d->visibility = InputPanelShowRequested;
    else {
        d->server->showInputMethod();
        d->visibility = InputPanelShown;
        emitInputPanelVisibleChanged();
    }
}
コード例 #4
0
void QMeeGoPlatformInputContext::showInputPanel()
{
    if (debug)
        qDebug() << "showInputPanel";

    QInputPanel *panel = qApp->inputPanel();
    if (!panel->inputItem() || !panel->inputWindow())
        d->visibility = InputPanelShowRequested;
    else {
        d->server->showInputMethod();
        d->visibility = InputPanelShown;
        emitInputPanelVisibleChanged();
    }
}
コード例 #5
0
void QMeeGoPlatformInputContext::hideInputPanel()
{
    d->server->hideInputMethod();
    d->visibility = InputPanelHidden;
    emitInputPanelVisibleChanged();
}
コード例 #6
0
void QMeeGoPlatformInputContext::imInitiatedHide()
{
    d->visibility = InputPanelHidden;
    emitInputPanelVisibleChanged();
    // ### clear focus
}