Assembly: Bom: replace QtWidget by QtGui for Qt6

This commit is contained in:
PaddleStroke
2025-11-24 16:17:59 +01:00
committed by Chris Hennes
parent 47643f7ccd
commit 26c401d7d2

View File

@@ -225,7 +225,7 @@ class TaskAssemblyCreateBom(QtCore.QObject):
noneAdded = True
for name in TranslatedColumnNames:
if name not in current_columns:
action = QtWidgets.QAction(f"Add '{name}' column", self)
action = QtGui.QAction(f"Add '{name}' column", self)
action.triggered.connect(partial(self.addColItem, name))
menu.addAction(action)
noneAdded = False
@@ -235,7 +235,7 @@ class TaskAssemblyCreateBom(QtCore.QObject):
return
# Add the action for adding a custom column
action = QtWidgets.QAction("Add custom column", self)
action = QtGui.QAction("Add custom column", self)
action.triggered.connect(self.addColumn)
menu.addAction(action)