forked from openlp/openlp
fixed transparent display for OS X
Fixes: https://launchpad.net/bugs/1117098
This commit is contained in:
parent
c17826937c
commit
0dd6c38139
@ -175,8 +175,10 @@ class MainDisplay(Display):
|
|||||||
def setTransparency(self, enabled):
|
def setTransparency(self, enabled):
|
||||||
if enabled:
|
if enabled:
|
||||||
self.setAutoFillBackground(False)
|
self.setAutoFillBackground(False)
|
||||||
|
self.setStyleSheet("QGraphicsView {background: transparent;}")
|
||||||
else:
|
else:
|
||||||
self.setAttribute(QtCore.Qt.WA_NoSystemBackground, False)
|
self.setAttribute(QtCore.Qt.WA_NoSystemBackground, False)
|
||||||
|
self.setStyleSheet("QGraphicsView {background: white;}")
|
||||||
self.setAttribute(QtCore.Qt.WA_TranslucentBackground, enabled)
|
self.setAttribute(QtCore.Qt.WA_TranslucentBackground, enabled)
|
||||||
self.repaint()
|
self.repaint()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user