Add cursor to inform a user about long operation.

This commit is contained in:
Roman Telezhynskyi 2021-01-19 13:00:09 +02:00
parent 4c0edca64a
commit e7ae897433

View File

@ -3027,11 +3027,15 @@ QTableWidgetItem *TMainWindow::AddCell(const QString &text, int row, int column,
//---------------------------------------------------------------------------------------------------------------------
void TMainWindow::RefreshData(bool freshCall)
{
QGuiApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
data->ClearUniqueNames();
data->ClearVariables(VarType::Measurement);
m->ReadMeasurements(currentDimensionA, currentDimensionB, currentDimensionC);
RefreshTable(freshCall);
QGuiApplication::restoreOverrideCursor();
}
//---------------------------------------------------------------------------------------------------------------------