120 itm.setIcon(0, self.__dirIcon) |
120 itm.setIcon(0, self.__dirIcon) |
121 itm.setChildIndicatorPolicy(QTreeWidgetItem.ShowIndicator) |
121 itm.setChildIndicatorPolicy(QTreeWidgetItem.ShowIndicator) |
122 elif nodekind == pysvn.node_kind.file: |
122 elif nodekind == pysvn.node_kind.file: |
123 itm.setIcon(0, self.__fileIcon) |
123 itm.setIcon(0, self.__fileIcon) |
124 |
124 |
125 itm.setData(0, self.__urlRole, QVariant(url)) |
125 itm.setData(0, self.__urlRole, url) |
126 |
126 |
127 itm.setTextAlignment(0, Qt.AlignLeft) |
127 itm.setTextAlignment(0, Qt.AlignLeft) |
128 itm.setTextAlignment(1, Qt.AlignRight) |
128 itm.setTextAlignment(1, Qt.AlignRight) |
129 itm.setTextAlignment(2, Qt.AlignLeft) |
129 itm.setTextAlignment(2, Qt.AlignLeft) |
130 itm.setTextAlignment(3, Qt.AlignRight) |
130 itm.setTextAlignment(3, Qt.AlignRight) |
233 Private slot called when an item is expanded. |
233 Private slot called when an item is expanded. |
234 |
234 |
235 @param item reference to the item to be expanded (QTreeWidgetItem) |
235 @param item reference to the item to be expanded (QTreeWidgetItem) |
236 """ |
236 """ |
237 if not self.__ignoreExpand: |
237 if not self.__ignoreExpand: |
238 url = item.data(0, self.__urlRole).toString() |
238 url = item.data(0, self.__urlRole) |
239 self.__listRepo(url, item) |
239 self.__listRepo(url, item) |
240 |
240 |
241 @pyqtSlot(QTreeWidgetItem) |
241 @pyqtSlot(QTreeWidgetItem) |
242 def on_repoTree_itemCollapsed(self, item): |
242 def on_repoTree_itemCollapsed(self, item): |
243 """ |
243 """ |