Commit a2b9463d authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel

Fix hpp/gui/collision_pairs.py plugin (Qt5)

parent 8f508478
......@@ -70,7 +70,10 @@ class CollisionPairs(QtGui.QWidget):
# Create table
self.table = QtGui.QTableWidget(0, 6)
self.table.setHorizontalHeaderLabels(["Active", "Link 1", "Link 2", "Reason", "Current configuration", "% of collision"])
self.table.horizontalHeader().setResizeMode(QtGui.QHeaderView.Interactive)
if Qt.qVersion().startswith('4'):
self.table.horizontalHeader().setResizeMode(QtGui.QHeaderView.Interactive)
else:
self.table.horizontalHeader().setSectionResizeMode(QtGui.QHeaderView.Interactive)
self.table.selectionBehavior = QtGui.QAbstractItemView.SelectRows
self.table.connect("currentItemChanged(QTableWidgetItem*,QTableWidgetItem*)", self.currentItemChanged)
box.addWidget(self.table)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment