Changeset 1827

Show
Ignore:
Timestamp:
05/03/10 14:07:53 (11 years ago)
Author:
arnonym
Message:

Replace usage of QStyledItemDelegate by QItemDelegate, at least for now. The later is available on Qt4.3, the styled version only since Qt4.4. And ubuntu hardy only ships 4.3.

Should fix #276.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/mixer-qt4/ffado/mixer/saffire_dice.py

    r1796 r1827  
    166166 
    167167 
    168 class MonitoringDelegate(QtGui.QStyledItemDelegate): 
     168class MonitoringDelegate(QtGui.QItemDelegate): 
    169169    def __init__(self, parent): 
    170         QtGui.QStyledItemDelegate.__init__(self, parent) 
     170        QtGui.QItemDelegate.__init__(self, parent) 
    171171 
    172172    def createEditor(self, parent, option, index): 
     
    176176            return combo 
    177177        else: 
    178             return QtGui.QStyledItemDelegate.createEditor(self, parent, option, index) 
     178            return QtGui.QItemDelegate.createEditor(self, parent, option, index) 
    179179 
    180180    def setEditorData(self, editor, index): 
     
    184184            editor.setCurrentIndex(list.indexOf(index.data(Qt.Qt.DisplayRole).toString())) 
    185185        else: 
    186             QtGui.QStyledItemDelegate.setEditorData(self, editor, index) 
     186            QtGui.QItemDelegate.setEditorData(self, editor, index) 
    187187 
    188188    def setModelData(self, editor, model, index): 
     
    190190            model.setData(index, editor.currentText(), Qt.Qt.EditRole) 
    191191        else: 
    192             QtGui.QStyledItemDelegate.setModelData(self, editor, model, index) 
     192            QtGui.QItemDelegate.setModelData(self, editor, model, index) 
    193193 
    194194    def currentChanged(self):