Assembly: Bom: replace QtWidget by QtGui for Qt6

(cherry picked from commit 59f672eb94)
This commit is contained in:
PaddleStroke
2025-11-25 08:42:18 +01:00
committed by Max Wilfinger
parent 1cd0927a07
commit 70c69bbebc
+2 -2
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)