some mainscreen widgets fixes
This commit is contained in:
parent
e257d8f96f
commit
b081bff2ce
1 changed files with 7 additions and 3 deletions
|
@ -81,6 +81,8 @@ class ScreenShotWindow(QtWidgets.QWidget):
|
|||
self.showFullScreen()
|
||||
self.setWindowOpacity(0.5)
|
||||
self.rubberband = RubberBand()
|
||||
self.rubberband.setWindowFlags(self.rubberband.windowFlags() | QtCore.Qt.FramelessWindowHint)
|
||||
self.rubberband.setAttribute(QtCore.Qt.WA_TranslucentBackground)
|
||||
|
||||
def closeEvent(self, *args):
|
||||
if self.parent.isHidden():
|
||||
|
@ -390,11 +392,13 @@ class MainMenuButton(QtWidgets.QPushButton):
|
|||
|
||||
class ClickableLabel(QtWidgets.QLabel):
|
||||
|
||||
clicked = QtCore.pyqtSignal()
|
||||
|
||||
def __init__(self, *args):
|
||||
super().__init__(*args)
|
||||
|
||||
def mouseReleaseEvent(self, ev):
|
||||
self.emit(QtCore.SIGNAL('clicked()'))
|
||||
self.clicked.emit()
|
||||
|
||||
|
||||
class SearchScreen(QtWidgets.QWidget):
|
||||
|
|
Loading…
Reference in a new issue