306 header.resizeSection(0, 120) # variable column |
306 header.resizeSection(0, 120) # variable column |
307 header.resizeSection(1, 150) # value column |
307 header.resizeSection(1, 150) # value column |
308 |
308 |
309 self.__createPopupMenus() |
309 self.__createPopupMenus() |
310 self.setContextMenuPolicy(Qt.CustomContextMenu) |
310 self.setContextMenuPolicy(Qt.CustomContextMenu) |
311 self.connect(self,SIGNAL('customContextMenuRequested(const QPoint &)'), |
311 self.customContextMenuRequested.connect(self.__showContextMenu) |
312 self.__showContextMenu) |
|
313 |
312 |
314 self.connect(self, SIGNAL("itemExpanded(QTreeWidgetItem *)"), |
313 self.connect(self, SIGNAL("itemExpanded(QTreeWidgetItem *)"), |
315 self.__expandItemSignal) |
314 self.__expandItemSignal) |
316 self.connect(self, SIGNAL("itemCollapsed(QTreeWidgetItem *)"), |
315 self.connect(self, SIGNAL("itemCollapsed(QTreeWidgetItem *)"), |
317 self.collapseItem) |
316 self.collapseItem) |