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; }
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(); } }
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 }
void AsemanDevices::keyboard_changed() { emit keyboardChanged(); }