Browse Source

Select whole row in full launcher

master
Nils 3 years ago
parent
commit
9415dd7379
  1. 8
      qtgui/opensessioncontroller.py

8
qtgui/opensessioncontroller.py

@ -149,6 +149,9 @@ class ClientTable(object):
self.clientsTreeWidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
self.clientsTreeWidget.customContextMenuRequested.connect(self.clientsContextMenu)
self.clientsTreeWidget.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
self.clientsTreeWidget.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
self.clientsTreeWidget.setIconSize(iconSize)
self.clientsTreeWidget.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) #We only allow explicit editing.
self.clientsTreeWidgetColumns = ("reportedName", "label", "lastStatus", "visible", "dirty", "clientId") #basically an enum
@ -408,6 +411,8 @@ class LauncherProgram(QtWidgets.QTreeWidgetItem):
self.launcherDict = launcherDict
self.executable = launcherDict["argodejoExec"]
parameterList = [] #later in update
super().__init__(parameterList, type=1000) #type 0 is default qt type. 1000 is subclassed user type)
self.updateData(launcherDict)
@ -451,6 +456,9 @@ class LauncherTable(object):
self.launcherWidget.setSortingEnabled(True)
self.launcherWidget.setAlternatingRowColors(True)
self.launcherWidget.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
self.launcherWidget.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
##The actual program entries are handled by the LauncherProgram item class
#self.buildPrograms() #Don't call here. MainWindow calls it when everything is ready.

Loading…
Cancel
Save