diff options
author | Eike Ziller <eike.ziller@qt.io> | 2024-01-19 16:17:01 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2024-01-22 13:50:46 +0000 |
commit | d53c5344ec66e4f72da817206ba81cdc7b869454 (patch) | |
tree | 4e41a6f4cf8d702508ed5fd4a4732fc1a7e53593 /src/plugins/cppeditor/cpptypehierarchy.cpp | |
parent | 1a84ae038df0757f44d890ad3d5b2e055d5dda7e (diff) |
ProgressManager: Use std::chrono for timed tasks
It is more descriptive than an int.
Change-Id: I129dc931b7dd137846eb97747a5277911b94e06f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/cppeditor/cpptypehierarchy.cpp')
-rw-r--r-- | src/plugins/cppeditor/cpptypehierarchy.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cpptypehierarchy.cpp b/src/plugins/cppeditor/cpptypehierarchy.cpp index 9b907c6e43..a46eafd98b 100644 --- a/src/plugins/cppeditor/cpptypehierarchy.cpp +++ b/src/plugins/cppeditor/cpptypehierarchy.cpp @@ -226,8 +226,11 @@ void CppTypeHierarchyWidget::perform() m_futureWatcher.setFuture(QFuture<void>(m_future)); m_synchronizer.addFuture(m_future); + using namespace std::chrono_literals; Core::ProgressManager::addTimedTask(m_futureWatcher.future(), - Tr::tr("Evaluating Type Hierarchy"), "TypeHierarchy", 2); + Tr::tr("Evaluating Type Hierarchy"), + "TypeHierarchy", + 2s); } void CppTypeHierarchyWidget::performFromExpression(const QString &expression, const FilePath &filePath) |