Esempio n. 1
0
    def mimeData(self, indices):
        for index in indices:
            pass

        category, name = self.projectdata(index)
        if category in ('model', 'data'):
            data = self._project.get_item(category, name)
            return encode_to_qmimedata(data, 'openalealab/%s' % category)
        else:
            # QtGui.QStandardItemModel.mimeData(self, indices)
            return QtCore.QMimeData()
Esempio n. 2
0
 def mimeData(self, indices):
     for index in indices:
         control = self.control(index)
     return encode_to_qmimedata(control, "openalealab/control")
Esempio n. 3
0
 def mimeData(self, indices):
     for index in indices:
         row = index.row()
     data = SampleCustomData(row, self._lst[row])
     return encode_to_qmimedata(data, 'custom/data')
Esempio n. 4
0
 def mimeData(self, indices):
     for index in indices:
         row = index.row()
     data = SampleCustomData(row, self._lst[row])
     return encode_to_qmimedata(data, 'custom/data')