From c3cc4415853f43acb452ec0074a9c6769d7b0af8 Mon Sep 17 00:00:00 2001 From: duplo Date: Thu, 10 Sep 2009 09:27:35 +0000 Subject: [PATCH] Show hourglass when doing something potentially long git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2918 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BEditingDialog.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wizard/BEditingDialog.py b/wizard/BEditingDialog.py index 1d454f4e..e0d27853 100644 --- a/wizard/BEditingDialog.py +++ b/wizard/BEditingDialog.py @@ -166,6 +166,7 @@ class BEditingDialog(QDialog): self.tr("Changing the BeRTOS version will destroy all the modification done on the BeRTOS sources"), QMessageBox.Ok | QMessageBox.Cancel ) == QMessageBox.Ok: + qApp.setOverrideCursor(QCursor(Qt.WaitCursor)) version_page.setProjectInfo("SOURCES_PATH", version) version_page.setProjectInfo("OLD_SOURCES_PATH", current_version) enabled_modules = bertos_utils.enabledModules(version_page.project()) @@ -183,12 +184,15 @@ class BEditingDialog(QDialog): version_page.setProjectInfo("CONFIGURATIONS", merged_configuration) bertos_utils.setEnabledModules(version_page.project(), enabled_modules) self.module_page.fillModuleTree() + qApp.restoreOverrideCursor() else: # Rollback version to the previous selected one. version_page.setProjectInfo("SOURCES_PATH", current_version) def apply(self): + qApp.setOverrideCursor(QCursor(Qt.WaitCursor)) createBertosProject(self.module_page.project(), edit=True) + qApp.restoreOverrideCursor() self.accept() def toolchains(self): -- 2.25.1