forked from openlp/openlp
(small) coding standard fixes
This commit is contained in:
parent
6352f8c0ed
commit
03a3d7b3f5
@ -240,7 +240,8 @@ class MainDisplay(DisplayWidget):
|
|||||||
#Sort out screen locations and sizes
|
#Sort out screen locations and sizes
|
||||||
self.setGeometry(self.screen[u'size'])
|
self.setGeometry(self.screen[u'size'])
|
||||||
self.scene.setSceneRect(0,0,self.size().width(), self.size().height())
|
self.scene.setSceneRect(0,0,self.size().width(), self.size().height())
|
||||||
self.webView.setGeometry(0, 0, self.size().width(), self.size().height())
|
self.webView.setGeometry(0, 0, self.size().width(),
|
||||||
|
self.size().height())
|
||||||
#Build a custom splash screen
|
#Build a custom splash screen
|
||||||
self.InitialFrame = QtGui.QImage(
|
self.InitialFrame = QtGui.QImage(
|
||||||
self.screen[u'size'].width(),
|
self.screen[u'size'].width(),
|
||||||
@ -287,11 +288,14 @@ class MainDisplay(DisplayWidget):
|
|||||||
self.webView = QtWebKit.QWebView()
|
self.webView = QtWebKit.QWebView()
|
||||||
self.page = self.webView.page()
|
self.page = self.webView.page()
|
||||||
self.videoDisplay = self.page.mainFrame()
|
self.videoDisplay = self.page.mainFrame()
|
||||||
self.videoDisplay.setScrollBarPolicy(QtCore.Qt.Vertical, QtCore.Qt.ScrollBarAlwaysOff)
|
self.videoDisplay.setScrollBarPolicy(QtCore.Qt.Vertical,
|
||||||
self.videoDisplay.setScrollBarPolicy(QtCore.Qt.Horizontal, QtCore.Qt.ScrollBarAlwaysOff)
|
QtCore.Qt.ScrollBarAlwaysOff)
|
||||||
|
self.videoDisplay.setScrollBarPolicy(QtCore.Qt.Horizontal,
|
||||||
|
QtCore.Qt.ScrollBarAlwaysOff)
|
||||||
self.proxy = QtGui.QGraphicsProxyWidget()
|
self.proxy = QtGui.QGraphicsProxyWidget()
|
||||||
self.proxy.setWidget(self.webView)
|
self.proxy.setWidget(self.webView)
|
||||||
self.proxy.setWindowFlags(QtCore.Qt.Window | QtCore.Qt.FramelessWindowHint)
|
self.proxy.setWindowFlags(
|
||||||
|
QtCore.Qt.Window | QtCore.Qt.FramelessWindowHint)
|
||||||
self.proxy.setZValue(1)
|
self.proxy.setZValue(1)
|
||||||
self.scene.addItem(self.proxy)
|
self.scene.addItem(self.proxy)
|
||||||
|
|
||||||
@ -412,7 +416,8 @@ class MainDisplay(DisplayWidget):
|
|||||||
log.debug(u'adddisplayVideo')
|
log.debug(u'adddisplayVideo')
|
||||||
self.displayImage(self.transparent)
|
self.displayImage(self.transparent)
|
||||||
self.videoDisplay.setHtml(HTMLVIDEO %
|
self.videoDisplay.setHtml(HTMLVIDEO %
|
||||||
(path, self.screen[u'size'].width(), self.screen[u'size'].height()))
|
(path, self.screen[u'size'].width(),
|
||||||
|
self.screen[u'size'].height()))
|
||||||
|
|
||||||
def frameView(self, frame, transition=False):
|
def frameView(self, frame, transition=False):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user