(self, event)
Reimplemented.
Reimplemented.
Reimplemented .
def dropEvent(self, event):
        """Reimplemented."""
        layout = self.__flowlayout
        index = self.__insertIndexAt(self.mapFromGlobal(QCursor.pos()))

        if event.mimeData().hasFormat("application/x-internal-move") and \
                event.source() is self:
            # Complete the internal move
            frame, oldindex, _ = self.__dragstart
            # Remove the drop indicator spacer item before re-inserting
            # the frame
            self.__setDropIndicatorAt(None)

            if index > oldindex:
                index = index - 1

            if index != oldindex:
                item = layout.takeAt(oldindex)
                assert item.widget() is frame
                layout.insertWidget(index, frame)
                self.widgetMoved.emit(oldindex, index)
                event.accept()

            self.__dragstart = None, None, None
def dropEvent ( self , event ) : layout = self . __flowlayout index = self . __insertIndexAt ( self . mapFromGlobal ( QCursor . pos ( ) ) ) if event . mimeData ( ) . hasFormat ( "application/x-internal-move" ) and event . source ( ) is self : # Complete the internal move frame , oldindex , _ = self . __dragstart # Remove the drop indicator spacer item before re-inserting # the frame self . __setDropIndicatorAt ( None ) if index > oldindex : index = index - 1 if index != oldindex : item = layout . takeAt ( oldindex ) assert item . widget ( ) is frame layout . insertWidget ( index , frame ) self . widgetMoved . emit ( oldindex , index ) event . accept ( ) self . __dragstart = None , None , None