From 387a187563a9fab5c3a3261d5f030fc63a4b3c9f Mon Sep 17 00:00:00 2001 From: duplo Date: Tue, 28 Sep 2010 07:49:13 +0000 Subject: [PATCH] Change tooltip generation. Now tooltip includes: the macro name and, if exists, the verbose description. (bug #161) git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4319 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BModulePage.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wizard/BModulePage.py b/wizard/BModulePage.py index d3b10172..d393d620 100644 --- a/wizard/BModulePage.py +++ b/wizard/BModulePage.py @@ -149,7 +149,11 @@ class BModulePage(BWizardPage): self.pageContent.propertyTable.setRowCount(index + 1) item = QTableWidgetItem(configurations[property]["brief"]) item.setFlags(item.flags() & ~Qt.ItemIsSelectable) - item.setToolTip(property) + tooltip = property + description = configurations[property].get("description", None) + if description: + tooltip = tooltip + ": " + description + item.setToolTip(tooltip) item.setData(Qt.UserRole, qvariant_converter.convertString(property)) self.pageContent.propertyTable.setItem(index, 0, item) if "type" in configurations[property]["informations"] and configurations[property]["informations"]["type"] == "boolean": -- 2.25.1