67 |
67 |
68 def appendToParentItem(self, parent, item): |
68 def appendToParentItem(self, parent, item): |
69 """ |
69 """ |
70 Public method to append an item to a parent item. |
70 Public method to append an item to a parent item. |
71 |
71 |
72 @param parent text of the parent item (string) or |
72 @param parent text of the parent item (string) or |
73 the parent item (QTreeWidgetItem) |
73 the parent item (QTreeWidgetItem) |
74 @param item item to be appended (QTreeWidgetItem) |
74 @param item item to be appended (QTreeWidgetItem) |
75 @return flag indicating success (boolean) |
75 @return flag indicating success (boolean) |
76 """ |
76 """ |
77 if isinstance(parent, QTreeWidgetItem): |
77 if isinstance(parent, QTreeWidgetItem): |
94 |
94 |
95 def prependToParentItem(self, parent, item): |
95 def prependToParentItem(self, parent, item): |
96 """ |
96 """ |
97 Public method to prepend an item to a parent item. |
97 Public method to prepend an item to a parent item. |
98 |
98 |
99 @param parent text of the parent item (string) or |
99 @param parent text of the parent item (string) or |
100 the parent item (QTreeWidgetItem) |
100 the parent item (QTreeWidgetItem) |
101 @param item item to be prepended (QTreeWidgetItem) |
101 @param item item to be prepended (QTreeWidgetItem) |
102 @return flag indicating success (boolean) |
102 @return flag indicating success (boolean) |
103 """ |
103 """ |
104 if isinstance(parent, QTreeWidgetItem): |
104 if isinstance(parent, QTreeWidgetItem): |