Changeset 10727:1e900efe56ac in orange


Ignore:
Timestamp:
04/03/12 14:12:04 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
0525d8e6ec58e73612719ccf0c347098a71a1427
Message:

Changed edit triggers.

Location:
Orange/OrangeWidgets/Data
Files:
2 edited

Legend:

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

    r9671 r10727  
    711711        self.classValuesView = listView = QListView() 
    712712        listView.setSelectionMode(QListView.SingleSelection) 
    713         listView.setEditTriggers(QListView.SelectedClicked) 
    714713         
    715714        self.classValuesModel = EnumVariableModel(self.classVariable, self, flags=Qt.ItemIsSelectable | Qt.ItemIsEnabled| Qt.ItemIsEditable) 
  • Orange/OrangeWidgets/Data/OWPythonScript.py

    r10462 r10727  
    297297        self.controlBox.layout().setSpacing(1) 
    298298        self.libraryView = QListView() 
    299         self.libraryView.pyqtConfigure(editTriggers=QListView.DoubleClicked | QListView.SelectedClicked) 
     299        self.libraryView.setEditTriggers(QListView.DoubleClicked | QListView.EditKeyPressed) 
    300300        self.libraryView.setSizePolicy(QSizePolicy.Ignored, QSizePolicy.Preferred) 
    301301        self.libraryView.setItemDelegate(ScriptItemDelegate(self)) 
Note: See TracChangeset for help on using the changeset viewer.