def data(self, index, role): return QStringListModel.data(self, index, Qt.DisplayRole if role == Qt.ToolTipRole else role)
def data(self, index, role): if role == Qt.DecorationRole: w = self.widgets[index.row()] if w.ICON: return (QIcon(w.ICON)) return QStringListModel.data(self, index, role)
def data(self, index, role): if role == Qt.DecorationRole: w = self.widgets[index.row()] if w.ICON: return (QIcon(w.ICON)) return QStringListModel.data(self, index, role)