screenshot rect fix

This commit is contained in:
ingvar1995 2016-03-23 19:03:04 +03:00
parent 63dd3b1248
commit 54a9cc3de5
2 changed files with 4 additions and 5 deletions

View File

@ -378,11 +378,10 @@ class ScreenShotWindow(QtGui.QWidget):
def __init__(self):
super(ScreenShotWindow, self).__init__()
self.setMouseTracking(True)
self.setWindowFlags(self.windowFlags() | QtCore.Qt.FramelessWindowHint | QtCore.Qt.FramelessWindowHint | QtCore.Qt.WindowStaysOnTopHint)
self.setWindowFlags(self.windowFlags() | QtCore.Qt.FramelessWindowHint | QtCore.Qt.WindowStaysOnTopHint)
self.showFullScreen()
self.setWindowOpacity(0.01)
self.rubberband = QtGui.QRubberBand(QtGui.QRubberBand.Rectangle, self)
self.rubberband.setWindowOpacity(1)
self.setWindowOpacity(0.001)
self.rubberband = QtGui.QRubberBand(QtGui.QRubberBand.Rectangle, None)
def mousePressEvent(self, event):
self.origin = event.pos()

View File

@ -1250,4 +1250,4 @@ QListWidget QPushButton
QPushButton:hover
{
background-color: #4A4949;
}
}