Commits

Aleš Erjavec committed b928fc4

Changed edit triggers in value and label views.

  • Participants
  • Parent commits d7ba31d

Comments (0)

Files changed (1)

File Orange/OrangeWidgets/Data/OWEditDomain.py

         vlayout.setSpacing(1)
         
         self.labels_edit = QTreeView()
-        self.labels_edit.setEditTriggers(QTreeView.DoubleClicked | \
-                                         QTreeView.EditKeyPressed)
+        self.labels_edit.setEditTriggers(QTreeView.CurrentChanged)
         self.labels_edit.setRootIsDecorated(False)
         
         self.labels_model = DictItemsModel()
         
     def _setup_gui_values(self):
         self.values_edit = QListView()
-        self.values_edit.setEditTriggers(QListView.DoubleClicked | \
-                                         QListView.EditKeyPressed)
+        self.values_edit.setEditTriggers(QTreeView.CurrentChanged)
         self.values_model = PyListModel(flags=Qt.ItemIsSelectable | \
                                         Qt.ItemIsEnabled | Qt.ItemIsEditable)
         self.values_edit.setModel(self.values_model)