Removes border, but not affects to OSX border and shadow

This commit is contained in:
Dmitriy Marmyshev 2013-09-18 10:48:25 +04:00
parent 5d648f80c6
commit 1ff6f5fe20
1 changed files with 2 additions and 2 deletions

View File

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