forked from M-Labs/artiq
1
0
Fork 0

gui: fix selections

This commit is contained in:
Sebastien Bourdeauducq 2015-07-14 19:08:08 +02:00
parent 21e8596d8c
commit e20b260117
2 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class ResultsDock(dockarea.Dock):
self.addWidget(grid) self.addWidget(grid)
self.table = QtGui.QTableView() self.table = QtGui.QTableView()
self.table.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows) self.table.setSelectionMode(QtGui.QAbstractItemView.NoSelection)
grid.addWidget(self.table, 0, 0) grid.addWidget(self.table, 0, 0)
add_display_box = QtGui.QGroupBox("Add display") add_display_box = QtGui.QGroupBox("Add display")

View File

@ -56,6 +56,7 @@ class ScheduleDock(dockarea.Dock):
self.table = QtGui.QTableView() self.table = QtGui.QTableView()
self.table.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows) self.table.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
self.table.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
self.addWidget(self.table) self.addWidget(self.table)
self.table.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu) self.table.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)