[BIM][Draft][CAM] preparation for deprecation of QCheckBox… (#21939)
* [BIM][Draft]{CAM] preparation for deprecation of QCheckBox stateChanged -> checkStateChanged
This commit is contained in:
@@ -159,7 +159,10 @@ class BIM_Classification:
|
||||
self.form.treeClass.itemDoubleClicked.connect(self.apply)
|
||||
self.form.search.up.connect(self.onUpArrow)
|
||||
self.form.search.down.connect(self.onDownArrow)
|
||||
self.form.onlyVisible.stateChanged.connect(self.onVisible)
|
||||
if hasattr(self.form.onlyVisible, "checkStateChanged"): # Qt version >= 6.7.0
|
||||
self.form.onlyVisible.checkStateChanged.connect(self.onVisible)
|
||||
else: # Qt version < 6.7.0
|
||||
self.form.onlyVisible.stateChanged.connect(self.onVisible)
|
||||
|
||||
# center the dialog over FreeCAD window
|
||||
mw = FreeCADGui.getMainWindow()
|
||||
|
||||
@@ -95,7 +95,10 @@ class BIM_IfcElements:
|
||||
)
|
||||
self.form.groupMode.currentIndexChanged.connect(self.update)
|
||||
self.form.tree.clicked.connect(self.onClickTree)
|
||||
self.form.onlyVisible.stateChanged.connect(self.update)
|
||||
if hasattr(self.form.onlyVisible, "checkStateChanged"): # Qt version >= 6.7.0
|
||||
self.form.onlyVisible.checkStateChanged.connect(self.update)
|
||||
else: # Qt version < 6.7.0
|
||||
self.form.onlyVisible.stateChanged.connect(self.update)
|
||||
self.form.buttonBox.accepted.connect(self.accept)
|
||||
self.form.globalMode.currentIndexChanged.connect(self.onObjectTypeChanged)
|
||||
self.form.globalMaterial.currentIndexChanged.connect(self.onMaterialChanged)
|
||||
|
||||
@@ -139,10 +139,15 @@ class BIM_IfcProperties:
|
||||
# connect signals
|
||||
self.form.tree.selectionModel().selectionChanged.connect(self.updateProperties)
|
||||
self.form.groupMode.currentIndexChanged.connect(self.update)
|
||||
self.form.onlyVisible.stateChanged.connect(self.onVisible)
|
||||
self.form.onlySelected.stateChanged.connect(self.onSelected)
|
||||
if hasattr(self.form.onlyVisible, "checkStateChanged"): # Qt version >= 6.7.0
|
||||
self.form.onlyVisible.checkStateChanged.connect(self.update)
|
||||
self.form.onlySelected.checkStateChanged.connect(self.onSelected)
|
||||
self.form.onlyMatches.checkStateChanged.connect(self.update)
|
||||
else: # Qt version < 6.7.0
|
||||
self.form.onlyVisible.stateChanged.connect(self.update)
|
||||
self.form.onlySelected.stateChanged.connect(self.onSelected)
|
||||
self.form.onlyMatches.stateChanged.connect(self.update)
|
||||
self.form.buttonBox.accepted.connect(self.accept)
|
||||
self.form.onlyMatches.stateChanged.connect(self.update)
|
||||
self.form.searchField.currentIndexChanged.connect(self.update)
|
||||
self.form.searchField.editTextChanged.connect(self.update)
|
||||
self.form.comboProperty.currentIndexChanged.connect(self.addProperty)
|
||||
|
||||
@@ -122,7 +122,10 @@ class BIM_IfcQuantities:
|
||||
self.qmodel.dataChanged.connect(self.setChecked)
|
||||
self.form.buttonBox.accepted.connect(self.accept)
|
||||
self.form.quantities.clicked.connect(self.onClickTree)
|
||||
self.form.onlyVisible.stateChanged.connect(self.update)
|
||||
if hasattr(self.form.onlyVisible, "checkStateChanged"): # Qt version >= 6.7.0
|
||||
self.form.onlyVisible.checkStateChanged.connect(self.update)
|
||||
else: # Qt version < 6.7.0
|
||||
self.form.onlyVisible.stateChanged.connect(self.update)
|
||||
self.form.buttonRefresh.clicked.connect(self.update)
|
||||
self.form.buttonApply.clicked.connect(self.add_qto)
|
||||
|
||||
|
||||
@@ -358,7 +358,10 @@ class Arch_Wall:
|
||||
inputHeight.valueChanged.connect(self.setHeight)
|
||||
comboAlignment.currentIndexChanged.connect(self.setAlign)
|
||||
inputOffset.valueChanged.connect(self.setOffset)
|
||||
checkboxUseSketches.stateChanged.connect(self.setUseSketch)
|
||||
if hasattr(checkboxUseSketches, "checkStateChanged"): # Qt version >= 6.7.0
|
||||
checkboxUseSketches.checkStateChanged.connect(self.setUseSketch)
|
||||
else: # Qt version < 6.7.0
|
||||
checkboxUseSketches.stateChanged.connect(self.setUseSketch)
|
||||
comboWallPresets.currentIndexChanged.connect(self.setMat)
|
||||
|
||||
# Define the workflow of the input fields:
|
||||
|
||||
@@ -315,7 +315,10 @@ class Arch_Window:
|
||||
include = QtGui.QCheckBox(translate("Arch","Auto include in host object"))
|
||||
include.setChecked(True)
|
||||
grid.addWidget(include,0,0,1,2)
|
||||
include.stateChanged.connect(self.setInclude)
|
||||
if hasattr(include, "checkStateChanged"): # Qt version >= 6.7.0
|
||||
include.checkStateChanged.connect(self.setInclude)
|
||||
else: # Qt version < 6.7.0
|
||||
include.stateChanged.connect(self.setInclude)
|
||||
|
||||
# sill height
|
||||
labels = QtGui.QLabel(translate("Arch","Sill height"))
|
||||
|
||||
Reference in New Issue
Block a user