Update PythonWrapper.cpp

.
This commit is contained in:
Andrea
2025-03-02 17:52:08 +01:00
parent da66720d3a
commit 5f6f2d04ad
2 changed files with 4 additions and 7 deletions

View File

@@ -80,14 +80,10 @@
// Do not use SHIBOKEN_MICRO_VERSION; it might contain a dot
# define SHIBOKEN_FULL_VERSION QT_VERSION_CHECK(SHIBOKEN_MAJOR_VERSION, SHIBOKEN_MINOR_VERSION, 0)
# define HAVE_SHIBOKEN_TYPE_FOR_TYPENAME
# ifndef HAVE_SHIBOKEN_TYPE_FOR_TYPENAME
# include <pyside2_qtcore_python.h>
# include <pyside2_qtgui_python.h>
# include <pyside2_qtwidgets_python.h>
# endif
# include <pyside2_qtcore_python.h>
# include <pyside2_qtgui_python.h>
# include <pyside2_qtwidgets_python.h>
# endif // HAVE_PYSIDE2
#endif // HAVE_SHIBOKEN2

View File

@@ -176,6 +176,7 @@ void TaskFemConstraint::createDeleteAction(QListWidget* parentList)
// display shortcut behind the context menu entry
deleteAction->setShortcutVisibleInContextMenu(true);
parentList->addAction(deleteAction);
parentList->setContextMenuPolicy(Qt::ActionsContextMenu);
}