def mimeData(self, indexes): items = [index.internalPointer().mimeDataDict for index in indexes] mimeDataDict = {'source': 'library', 'items': items} return mimeWrapJson(mimeDataDict)
def mimeData(self, indexes): return mimeWrapJson({'source': 'playlist', 'row': indexes[0].row()})
def mimeData(self, indexes): mimeDataDicts = [ index.internalPointer().mimeDataDict() for index in indexes ] return mimeWrapJson(mimeDataDicts)