Commit f0339cfd authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

ENH: More optimizations for speedup.

Removed QApplication::processEvents() calls from pqAbstractActivateEventPlayer.
Reduced timeout for block-detection timer, increasing playback speed.
parent 4b7f29cf
......@@ -160,21 +160,21 @@ bool pqAbstractActivateEventPlayer::playEvent(QObject* Object,
QApplication::sendEvent(object, &keyDown);
QApplication::sendEvent(object, &keyUp);
QApplication::processEvents();
//QApplication::processEvents();
return true;
}
if(QAbstractButton* const object = qobject_cast<QAbstractButton*>(Object))
{
object->click();
QApplication::processEvents();
//QApplication::processEvents();
return true;
}
if (QAction* const action = qobject_cast<QAction*>(Object))
{
action->activate(QAction::Trigger);
QApplication::processEvents();
//QApplication::processEvents();
return true;
}
......
......@@ -60,7 +60,7 @@ pqEventDispatcher::pqEventDispatcher(QObject* parentObject) :
QObject::connect(QAbstractEventDispatcher::instance(), SIGNAL(awake()),
this, SLOT(awake()));
this->BlockTimer.setInterval(500);
this->BlockTimer.setInterval(100);
this->BlockTimer.setSingleShot(true);
QObject::connect(&this->BlockTimer, SIGNAL(timeout()),
this, SLOT(playEventOnBlocking()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment