91 @rtype QTreeWidgetItem |
91 @rtype QTreeWidgetItem |
92 """ |
92 """ |
93 itm = QTreeWidgetItem(self.filetypeAssociationList, [pattern, filetypeStr]) |
93 itm = QTreeWidgetItem(self.filetypeAssociationList, [pattern, filetypeStr]) |
94 itm.setData(1, Qt.ItemDataRole.UserRole, fileCategory) |
94 itm.setData(1, Qt.ItemDataRole.UserRole, fileCategory) |
95 return itm |
95 return itm |
96 |
|
97 |
96 |
98 @pyqtSlot() |
97 @pyqtSlot() |
99 def on_filetypeAssociationList_itemSelectionChanged(self): |
98 def on_filetypeAssociationList_itemSelectionChanged(self): |
100 """ |
99 """ |
101 Private slot to handle a change of the selected item. |
100 Private slot to handle a change of the selected item. |