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