void QUimInputContext::reset() { #ifdef ENABLE_DEBUG qDebug( "QUimInputContext::reset()" ); #endif QInputContext::reset(); candwinIsActive = FALSE; cwin->hide(); uim_reset_context( m_uc ); #ifdef Q_WS_X11 mCompose->reset(); #endif clearPreedit(); updatePreedit(); }
static int cmd_reset(int context_id) { /* reset current context */ uim_agent_context *ua = get_uim_agent_context(context_id); if (ua != NULL) { /* before reset, clear preedit and candidate */ clear_preedit(ua->pe); clear_candidate(ua->cand); uim_reset_context(ua->context); check_prop_list_update(ua); check_default_engine(); return 1; } else { return -1; } }
// reset void InputContext::clear() { clear_preedit(); candidate_deactivate(); uim_reset_context(mUc); }