コード例 #1
0
ファイル: kbdkeeper.cpp プロジェクト: pritambaral/lxqt-panel
bool KbdKeeper::setup()
{
    connect(&m_layout, SIGNAL(keyboardChanged()), SLOT(keyboardChanged()));
    connect(&m_layout, SIGNAL(layoutChanged(uint)), SLOT(layoutChanged(uint)));
    connect(&m_layout, SIGNAL(checkState()), SLOT(checkState()));

    return true;
}
コード例 #2
0
ファイル: asemandevices.cpp プロジェクト: githubxj/Papyrus
void AsemanDevices::timerEvent(QTimerEvent *e)
{
    if( e->timerId() == p->hide_keyboard_timer )
    {
        killTimer(p->hide_keyboard_timer);
        p->hide_keyboard_timer = 0;

        QGuiApplication::inputMethod()->hide();
        p->keyboard_stt = false;

        emit keyboardChanged();
    }
}
コード例 #3
0
ファイル: asemandevices.cpp プロジェクト: githubxj/Papyrus
void AsemanDevices::showKeyboard()
{
#ifndef DESKTOP_DEVICE
    if( p->hide_keyboard_timer )
    {
        killTimer(p->hide_keyboard_timer);
        p->hide_keyboard_timer = 0;
    }

    QGuiApplication::inputMethod()->show();
    p->keyboard_stt = true;

    emit keyboardChanged();
#endif
}
コード例 #4
0
ファイル: asemandevices.cpp プロジェクト: githubxj/Papyrus
void AsemanDevices::keyboard_changed()
{
    emit keyboardChanged();
}