From 54a9cc3de51dcce830c48d59fe3084db98ca6bae Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Wed, 23 Mar 2016 19:03:04 +0300 Subject: [PATCH] screenshot rect fix --- src/mainscreen.py | 7 +++---- src/styles/style.qss | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/mainscreen.py b/src/mainscreen.py index ecedcce..2ea5c4e 100644 --- a/src/mainscreen.py +++ b/src/mainscreen.py @@ -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() diff --git a/src/styles/style.qss b/src/styles/style.qss index 4735e55..4d32c95 100644 --- a/src/styles/style.qss +++ b/src/styles/style.qss @@ -1250,4 +1250,4 @@ QListWidget QPushButton QPushButton:hover { background-color: #4A4949; -} \ No newline at end of file +}