}
private void waitCursor(boolean wait) {
if (wait) {
if (QApplication.overrideCursor() == null)
QApplication.setOverrideCursor(new QCursor(Qt.CursorShape.WaitCursor));
}
else {
if (QApplication.overrideCursor() != null)
QApplication.restoreOverrideCursor();
else
QApplication.setOverrideCursor(new QCursor(Qt.CursorShape.ArrowCursor));
}
listManager.refreshCounters();
}