1. biolab
  2. Untitled project
  3. orange

Commits

Aleš Erjavec  committed 1e900ef

Changed edit triggers.

  • Participants
  • Parent commits b928fc4
  • Branches default

Comments (0)

Files changed (2)

File Orange/OrangeWidgets/Data/OWPaintData.py

View file
  • Ignore whitespace
         
         self.classValuesView = listView = QListView()
         listView.setSelectionMode(QListView.SingleSelection)
-        listView.setEditTriggers(QListView.SelectedClicked)
         
         self.classValuesModel = EnumVariableModel(self.classVariable, self, flags=Qt.ItemIsSelectable | Qt.ItemIsEnabled| Qt.ItemIsEditable)
         self.classValuesModel.wrap(self.classVariable.values)

File Orange/OrangeWidgets/Data/OWPythonScript.py

View file
  • Ignore whitespace
         self.controlBox = OWGUI.widgetBox(self.controlArea, 'Library')
         self.controlBox.layout().setSpacing(1)
         self.libraryView = QListView()
-        self.libraryView.pyqtConfigure(editTriggers=QListView.DoubleClicked | QListView.SelectedClicked)
+        self.libraryView.setEditTriggers(QListView.DoubleClicked | QListView.EditKeyPressed)
         self.libraryView.setSizePolicy(QSizePolicy.Ignored, QSizePolicy.Preferred)
         self.libraryView.setItemDelegate(ScriptItemDelegate(self))
         self.libraryView.setModel(self.libraryList)