From 26c401d7d260602808f06e859f59900474a46718 Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Mon, 24 Nov 2025 16:17:59 +0100 Subject: [PATCH] Assembly: Bom: replace QtWidget by QtGui for Qt6 --- src/Mod/Assembly/CommandCreateBom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Assembly/CommandCreateBom.py b/src/Mod/Assembly/CommandCreateBom.py index 7ab6af08d4..68bfdf0bc8 100644 --- a/src/Mod/Assembly/CommandCreateBom.py +++ b/src/Mod/Assembly/CommandCreateBom.py @@ -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)