Fix bug #1117098: Transparent theme is white on Mac OS X

bzr-revno: 2170
Fixes: https://launchpad.net/bugs/1117098
This commit is contained in:
Dmitriy Marmyshev 2013-10-04 00:05:49 +02:00 committed by Raoul Snyman
commit f555a103f0
1 changed files with 2 additions and 0 deletions

View File

@ -175,8 +175,10 @@ class MainDisplay(Display):
def setTransparency(self, enabled):
if enabled:
self.setAutoFillBackground(False)
self.setStyleSheet("QGraphicsView {background: transparent; border: 0px;}")
else:
self.setAttribute(QtCore.Qt.WA_NoSystemBackground, False)
self.setStyleSheet("QGraphicsView {}")
self.setAttribute(QtCore.Qt.WA_TranslucentBackground, enabled)
self.repaint()