void InputMethodListModel::start(int fromIndex)
{
	if(m_inputMethods.size() <= 0)
		return;

	Lazybones::setEmergencyStop(false);

	m_currentTimeMsec = 0;
	m_running = true;
	if(fromIndex < 0 || fromIndex >= m_inputMethods.size())
		m_currentActionIndex = -1;
	else
		m_currentActionIndex = fromIndex - 1;

	emit currentTimeMsecChanged();
	emit currentIndexChanged();

	doNextAction();
}
예제 #2
0
void CupsAddSmb::nextAction()
{
	if (m_actionindex < (int)(m_actions.count()))
		TQTimer::singleShot(1, this, TQT_SLOT(doNextAction()));
}