1
0
mirror of https://gitlab.com/openlp/openlp.git synced 2024-09-28 10:57:36 +00:00

fixed transparent display for OS X

Fixes: https://launchpad.net/bugs/1117098
This commit is contained in:
Dmitriy Marmyshev 2013-09-17 20:23:45 +04:00
parent d9b2d33f05
commit 5d648f80c6

View File

@ -167,8 +167,10 @@ class MainDisplay(Display):
""" """
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()