Removes border, but not affects to OSX border and shadow

This commit is contained in:
Dmitriy Marmyshev 2013-09-18 10:47:33 +04:00
parent 0dd6c38139
commit 413c318427
1 changed files with 2 additions and 2 deletions

View File

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