Esempio n. 1
0
    def doOverrideCursor(self):
        if self._overridden:
            return
        if self.dragCursor == self.CURSOR_BLANK:
            QApplication.setOverrideCursor(Qt.BlankCursor)
        elif self.dragCursor == self.CURSOR_ARROWS:
            if self._dragType == self.DRAG_VERTICAL:
                QApplication.setOverrideCursor(Qt.SizeVerCursor)
            elif self._dragType == self.DRAG_HORIZONTAL:
                QApplication.setOverrideCursor(Qt.SizeHorCursor)

        self._overridden = True
Esempio n. 2
0
 def doOverrideCursor(self):
     if self._overridden:
         return
     QApplication.setOverrideCursor(self.slideCursor)
     self._overridden = True