summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fc1f641)
the verbose description. (bug #161)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4319
38d2e660-2303-0410-9eaa-
f027e97ec537
self.pageContent.propertyTable.setRowCount(index + 1)
item = QTableWidgetItem(configurations[property]["brief"])
item.setFlags(item.flags() & ~Qt.ItemIsSelectable)
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":
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":