bool InviwoApplicationQt::event(QEvent* e) { if (e->type() == InviwoQtEvent::type()) { e->accept(); processFront(); return true; } else { return QApplication::event(e); } }
void InviwoApplication::waitForPool() { size_t old_size = pool_.getSize(); pool_.setSize(0); // This will wait until all tasks are done; processFront(); pool_.setSize(old_size); }