Skip to content

Commit 81e86ac

Browse files
authoredOct 21, 2016
Merge pull request #3651 from nirvn/processing_modeler_fix
[processing] fix broken modeler under pyqt5/python3 (fixes #15734)
2 parents 89fa21e + bd7149c commit 81e86ac

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
 

‎python/plugins/processing/gui/EditRenderingStylesDialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(self, alg):
5050

5151
self.alg = alg.getCopy()
5252

53-
self.tblStyles.horizontalHeader().setResizeMode(QHeaderView.Stretch)
53+
self.tblStyles.horizontalHeader().setSectionResizeMode(QHeaderView.Stretch)
5454
self.setWindowTitle(self.alg.name)
5555

5656
self.valueItems = {}

‎python/plugins/processing/modeler/ModelerAlgorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def getCopy(self):
237237
newone.provider = self.provider
238238

239239
newone.algs = {}
240-
for algname, alg in self.algs.iteritems():
240+
for algname, alg in self.algs.items():
241241
newone.algs[algname] = Algorithm()
242242
newone.algs[algname].__dict__.update(copy.deepcopy(alg.todict()))
243243
newone.inputs = copy.deepcopy(self.inputs)

‎python/plugins/processing/modeler/ModelerArrowItem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ModelerArrowItem(QGraphicsPathItem):
5757

5858
def __init__(self, startItem, startIndex, endItem, endIndex,
5959
parent=None, scene=None):
60-
super(ModelerArrowItem, self).__init__(parent, scene)
60+
super(ModelerArrowItem, self).__init__(parent)
6161
self.arrowHead = QPolygonF()
6262
self.endIndex = endIndex
6363
self.startIndex = startIndex

‎python/plugins/processing/modeler/ModelerGraphicItem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ModelerGraphicItem(QGraphicsItem):
4343
BOX_WIDTH = 200
4444

4545
def __init__(self, element, model):
46-
super(ModelerGraphicItem, self).__init__(None, None)
46+
super(ModelerGraphicItem, self).__init__(None)
4747
self.model = model
4848
self.element = element
4949
if isinstance(element, ModelerParameter):
@@ -337,7 +337,7 @@ class FlatButtonGraphicItem(QGraphicsItem):
337337
HEIGHT = 16
338338

339339
def __init__(self, icon, position, action):
340-
super(FlatButtonGraphicItem, self).__init__(None, None)
340+
super(FlatButtonGraphicItem, self).__init__(None)
341341
self.setAcceptHoverEvents(True)
342342
self.setFlag(QGraphicsItem.ItemIsMovable, False)
343343
self.pixmap = icon.pixmap(self.WIDTH, self.HEIGHT,

0 commit comments

Comments
 (0)
Please sign in to comment.