Commit 5a741de4 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

BUG: Too many stray processEvents..() calls scatterred across the players. We

don't need those since the pqEventDispatcher has a processEvents..() call after
playing every event.
parent c00d169f
......@@ -153,7 +153,6 @@ bool pqAbstractItemViewEventPlayer::playEvent(QObject* Object, const QString& Co
type = Command == "mouseDblClick" ? QEvent::MouseButtonDblClick : type;
QMouseEvent e(type, pt, button, buttons, keym);
QCoreApplication::sendEvent(object->viewport(), &e);
pqEventDispatcher::processEventsAndWait(1);
return true;
}
}
......
......@@ -88,11 +88,11 @@ void pqEventDispatcher::aboutToBlock()
//-----------------------------------------------------------------------------
void pqEventDispatcher::awake()
{
if (!pqEventDispatcher::DeferMenuTimeouts)
{
// cout << "awake" << endl;
// this->BlockTimer.stop();
}
//if (!pqEventDispatcher::DeferMenuTimeouts)
// {
// // cout << "awake" << endl;
// // this->BlockTimer.stop();
// }
}
//-----------------------------------------------------------------------------
......@@ -145,10 +145,10 @@ void pqEventDispatcher::playEventOnBlocking()
// if needed for debugging, I can print blocking annotation here.
this->playEvent(1);
if (!this->BlockTimer.isActive())
{
this->BlockTimer.start();
}
//if (!this->BlockTimer.isActive())
// {
// this->BlockTimer.start();
// }
}
//-----------------------------------------------------------------------------
......
......@@ -112,7 +112,6 @@ bool pqTreeViewEventPlayer::playEvent(
}
}
cur_item->setCheckState(column, static_cast<Qt::CheckState>(check_state));
pqEventDispatcher::processEventsAndWait(10);
return true;
}
......@@ -133,7 +132,6 @@ bool pqTreeViewEventPlayer::playEvent(
treeView->model()->setData(index,
static_cast<Qt::CheckState>(check_state),
Qt::CheckStateRole);
pqEventDispatcher::processEventsAndWait(10);
}
return true;
}
......@@ -146,7 +144,6 @@ bool pqTreeViewEventPlayer::playEvent(
return true;
}
treeView->setExpanded(index, (command=="expand"));
pqEventDispatcher::processEventsAndWait(10);
return true;
}
else if (command == "setCurrent")
......@@ -158,7 +155,6 @@ bool pqTreeViewEventPlayer::playEvent(
return true;
}
treeView->setCurrentIndex(index);
pqEventDispatcher::processEventsAndWait(10);
return true;
}
return false;
......
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