2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

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.table = QtGui.QTableView()
self.table.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
self.table.setSelectionMode(QtGui.QAbstractItemView.NoSelection)
grid.addWidget(self.table, 0, 0)
add_display_box = QtGui.QGroupBox("Add display")

View File

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