Fix QHeaderView.setResizeMode monkey patch for Qt5 shim

QHeaderView.setResizeMode/setSectionResizeMode has two
argument overload.
This commit is contained in:
Ales Erjavec 2016-02-22 10:45:29 +01:00
parent f988f0522d
commit 5388d52928

View File

@ -172,8 +172,8 @@ elif QT_LIB == PYQT5:
self.setContentsMargins(i, i, i, i)
QtWidgets.QGridLayout.setMargin = setMargin
def setResizeMode(self, mode):
self.setSectionResizeMode(mode)
def setResizeMode(self, *args):
self.setSectionResizeMode(*args)
QtWidgets.QHeaderView.setResizeMode = setResizeMode