Update PythonWrapper.cpp
.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user