Exemple #1
0
    def slotWidgetCopy(self):
        """Copy selected widget to the clipboard."""

        if self.selwidgets:
            mimedata = document.generateWidgetsMime(self.selwidgets)
            clipboard = qt4.QApplication.clipboard()
            clipboard.setMimeData(mimedata)
Exemple #2
0
    def slotWidgetCopy(self):
        """Copy selected widget to the clipboard."""

        if self.selwidgets:
            mimedata = document.generateWidgetsMime(self.selwidgets)
            clipboard = qt4.QApplication.clipboard()
            clipboard.setMimeData(mimedata)
Exemple #3
0
 def mimeData(self, indexes):
     """Get mime data for indexes."""
     widgets = [idx.internalPointer() for idx in indexes]
     return document.generateWidgetsMime(widgets)
Exemple #4
0
 def mimeData(self, indexes):
     """Get mime data for indexes."""
     widgets = [idx.internalPointer() for idx in indexes]
     return document.generateWidgetsMime(widgets)