- solve the conflicted files (hopefully) without CLI commands
This commit is contained in:
@@ -161,8 +161,12 @@ class ObjectCollection():
|
|||||||
self.object_list.append(obj)
|
self.object_list.append(obj)
|
||||||
|
|
||||||
# Create the model item to insert into the QListView
|
# Create the model item to insert into the QListView
|
||||||
icon = QtGui.QIcon(self.icons[obj.kind]) #self.icons["gerber"])
|
icon = QtGui.QIcon(self.icons[obj.kind]) # self.icons["gerber"])
|
||||||
item = QtGui.QStandardItem(icon, str(name))
|
item = QtGui.QStandardItem(icon, name)
|
||||||
|
# Item is not editable, so that double click
|
||||||
|
# does not allow cell value modification.
|
||||||
|
item.setEditable(False)
|
||||||
|
# The item is checkable, to add the checkbox.
|
||||||
item.setCheckable(True)
|
item.setCheckable(True)
|
||||||
if obj.options["plot"] is True:
|
if obj.options["plot"] is True:
|
||||||
item.setCheckState(2) #Qt.Checked)
|
item.setCheckState(2) #Qt.Checked)
|
||||||
|
|||||||
Reference in New Issue
Block a user