forked from M-Labs/artiq
gui: fix selections
This commit is contained in:
parent
21e8596d8c
commit
e20b260117
@ -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")
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user