Fixups with Qt6 enums (#13611)
* Python PySide enums to C++ converter * Python IntFlags to C++ int in getStandardButtons * Remove int conversion in mods Python sources
This commit is contained in:
committed by
GitHub
parent
c24ace7f73
commit
9759da82e4
@@ -131,7 +131,7 @@ class DraftTaskPanel:
|
||||
else:
|
||||
self.form = widget
|
||||
def getStandardButtons(self):
|
||||
return int(QtWidgets.QDialogButtonBox.Close)
|
||||
return QtWidgets.QDialogButtonBox.Close
|
||||
def accept(self):
|
||||
if hasattr(FreeCADGui,"draftToolBar"):
|
||||
return FreeCADGui.draftToolBar.validatePoint()
|
||||
@@ -919,7 +919,7 @@ class DraftToolBar:
|
||||
self.form = [extra]
|
||||
self.callback = callback
|
||||
def getStandardButtons(self):
|
||||
return int(QtWidgets.QDialogButtonBox.Close)
|
||||
return QtWidgets.QDialogButtonBox.Close
|
||||
def reject(self):
|
||||
if self.callback:
|
||||
self.callback()
|
||||
@@ -1687,7 +1687,7 @@ class FacebinderTaskPanel:
|
||||
return True
|
||||
|
||||
def getStandardButtons(self):
|
||||
return int(QtWidgets.QDialogButtonBox.Ok)
|
||||
return QtWidgets.QDialogButtonBox.Ok
|
||||
|
||||
def update(self):
|
||||
"""fills the treewidget"""
|
||||
|
||||
@@ -40,6 +40,7 @@ to be more similar to OrthoArray and the new tools.
|
||||
## \addtogroup drafttaskpanels
|
||||
# @{
|
||||
import FreeCADGui as Gui
|
||||
from PySide import QtWidgets
|
||||
|
||||
|
||||
class SelectPlaneTaskPanel:
|
||||
@@ -50,6 +51,6 @@ class SelectPlaneTaskPanel:
|
||||
|
||||
def getStandardButtons(self):
|
||||
"""Execute to set the standard buttons."""
|
||||
return 2097152 # int(QtWidgets.QDialogButtonBox.Close)
|
||||
return QtWidgets.QDialogButtonBox.Close
|
||||
|
||||
## @}
|
||||
|
||||
Reference in New Issue
Block a user