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

BUG: Adding a delay after tree widget event is triggered.

parent 36eb8696
......@@ -30,7 +30,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
========================================================================*/
#include "pqTreeViewEventPlayer.h"
#include "pqEventDispatcher.h"
#include <QTreeWidget>
#include <QDebug>
......@@ -92,6 +92,7 @@ bool pqTreeViewEventPlayer::playEvent(
}
}
cur_item->setCheckState(column, static_cast<Qt::CheckState>(check_state));
pqEventDispatcher::processEventsAndWait(10);
return true;
}
......@@ -118,6 +119,7 @@ bool pqTreeViewEventPlayer::playEvent(
treeView->model()->setData(index,
static_cast<Qt::CheckState>(check_state),
Qt::CheckStateRole);
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