Fix QHeaderView.setResizeMode monkey patch for Qt5 shim
QHeaderView.setResizeMode/setSectionResizeMode has two argument overload.
This commit is contained in:
parent
f988f0522d
commit
5388d52928
@ -172,8 +172,8 @@ elif QT_LIB == PYQT5:
|
|||||||
self.setContentsMargins(i, i, i, i)
|
self.setContentsMargins(i, i, i, i)
|
||||||
QtWidgets.QGridLayout.setMargin = setMargin
|
QtWidgets.QGridLayout.setMargin = setMargin
|
||||||
|
|
||||||
def setResizeMode(self, mode):
|
def setResizeMode(self, *args):
|
||||||
self.setSectionResizeMode(mode)
|
self.setSectionResizeMode(*args)
|
||||||
QtWidgets.QHeaderView.setResizeMode = setResizeMode
|
QtWidgets.QHeaderView.setResizeMode = setResizeMode
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user