105 0, Qt.ItemDataRole.ForegroundRole, QColor(Qt.GlobalColor.blue) |
105 0, Qt.ItemDataRole.ForegroundRole, QColor(Qt.GlobalColor.blue) |
106 ) |
106 ) |
107 self.__widgetActionToToolBarItemID[id(action)] = None |
107 self.__widgetActionToToolBarItemID[id(action)] = None |
108 categoryItem.setExpanded(True) |
108 categoryItem.setExpanded(True) |
109 |
109 |
110 for tbID, actions in list(self.__manager.toolBarsActions().items()): |
110 for tbID, actions in self.__manager.toolBarsActions().items(): |
111 tb = self.__manager.toolBarById(tbID) |
111 tb = self.__manager.toolBarById(tbID) |
112 default = self.__manager.isDefaultToolBar(tb) |
112 default = self.__manager.isDefaultToolBar(tb) |
113 tbItem = EricToolBarItem( |
113 tbItem = EricToolBarItem( |
114 toolBarId=tbID, |
114 toolBarId=tbID, |
115 actionIDs=[], |
115 actionIDs=[], |
451 tb = self.__manager.toolBarById(tbID) |
451 tb = self.__manager.toolBarById(tbID) |
452 self.__manager.deleteToolBar(tb) |
452 self.__manager.deleteToolBar(tb) |
453 self.__removedToolBarIDs = [] |
453 self.__removedToolBarIDs = [] |
454 |
454 |
455 # step 2: save configured toolbars |
455 # step 2: save configured toolbars |
456 for tbItem in list(self.__toolbarItems.values()): |
456 for tbItem in self.__toolbarItems.values(): |
457 if not tbItem.isChanged: |
457 if not tbItem.isChanged: |
458 continue |
458 continue |
459 |
459 |
460 if tbItem.toolBarId is None: |
460 if tbItem.toolBarId is None: |
461 # new custom toolbar |
461 # new custom toolbar |