From e7ae897433be7052061d9270215d0de020b61e32 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 19 Jan 2021 13:00:09 +0200 Subject: [PATCH] Add cursor to inform a user about long operation. --- src/app/tape/tmainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/tape/tmainwindow.cpp b/src/app/tape/tmainwindow.cpp index 85c16198d..0ae3fde7e 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -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(); } //---------------------------------------------------------------------------------------------------------------------