Ignore:
Timestamp:
04/03/12 13:54:01 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
1cb9ad6253dc225e46fde3a443213401cf0bb5ea
Message:

Changed edit triggers in value and label views.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Data/OWEditDomain.py

    r10358 r10726  
    143143         
    144144        self.labels_edit = QTreeView() 
    145         self.labels_edit.setEditTriggers(QTreeView.DoubleClicked | \ 
    146                                          QTreeView.EditKeyPressed) 
     145        self.labels_edit.setEditTriggers(QTreeView.CurrentChanged) 
    147146        self.labels_edit.setRootIsDecorated(False) 
    148147         
     
    294293    def _setup_gui_values(self): 
    295294        self.values_edit = QListView() 
    296         self.values_edit.setEditTriggers(QListView.DoubleClicked | \ 
    297                                          QListView.EditKeyPressed) 
     295        self.values_edit.setEditTriggers(QTreeView.CurrentChanged) 
    298296        self.values_model = PyListModel(flags=Qt.ItemIsSelectable | \ 
    299297                                        Qt.ItemIsEnabled | Qt.ItemIsEditable) 
Note: See TracChangeset for help on using the changeset viewer.