forked from openlp/openlp
style fixing
This commit is contained in:
parent
024ba1aac9
commit
ef947355c5
@ -205,7 +205,7 @@ class SlideController(DisplayController):
|
|||||||
self.hideMenu.menu().addAction(self.blankScreen)
|
self.hideMenu.menu().addAction(self.blankScreen)
|
||||||
self.hideMenu.menu().addAction(self.themeScreen)
|
self.hideMenu.menu().addAction(self.themeScreen)
|
||||||
self.hideMenu.menu().addAction(self.desktopScreen)
|
self.hideMenu.menu().addAction(self.desktopScreen)
|
||||||
#Wide menu of display control buttons
|
# Wide menu of display control buttons.
|
||||||
self.wideMenu1 = QtGui.QToolButton(self.toolbar)
|
self.wideMenu1 = QtGui.QToolButton(self.toolbar)
|
||||||
self.wideMenu1.setObjectName(u'wideMenu1')
|
self.wideMenu1.setObjectName(u'wideMenu1')
|
||||||
self.toolbar.addToolbarWidget(self.wideMenu1)
|
self.toolbar.addToolbarWidget(self.wideMenu1)
|
||||||
@ -590,15 +590,15 @@ class SlideController(DisplayController):
|
|||||||
width = self.parent().controlSplitter.sizes()[self.split]
|
width = self.parent().controlSplitter.sizes()[self.split]
|
||||||
for framenumber in range(len(self.serviceItem.get_frames())):
|
for framenumber in range(len(self.serviceItem.get_frames())):
|
||||||
self.previewListWidget.setRowHeight(framenumber, width / self.ratio)
|
self.previewListWidget.setRowHeight(framenumber, width / self.ratio)
|
||||||
self.onControllerSizeChanged(self.controller.width() , self.controller.height())
|
self.onControllerSizeChanged(self.controller.width(), self.controller.height())
|
||||||
|
|
||||||
def onControllerSizeChanged(self, width, height):
|
def onControllerSizeChanged(self, width, height):
|
||||||
"""
|
"""
|
||||||
Change layout of display control buttons on controller size change
|
Change layout of display control buttons on controller size change
|
||||||
"""
|
"""
|
||||||
if self.isLive:
|
if self.isLive:
|
||||||
if width > 300 and self.hideMenu.isVisible():
|
if width > 300 and self.hideMenu.isVisible():
|
||||||
self.toolbar.setWidgetVisible(self.hideMenuList, False)
|
self.toolbar.setWidgetVisible(self.hideMenuList, False)
|
||||||
self.toolbar.setWidgetVisible(self.wideMenu)
|
self.toolbar.setWidgetVisible(self.wideMenu)
|
||||||
elif width < 300 and not self.hideMenu.isVisible():
|
elif width < 300 and not self.hideMenu.isVisible():
|
||||||
self.toolbar.setWidgetVisible(self.wideMenu, False)
|
self.toolbar.setWidgetVisible(self.wideMenu, False)
|
||||||
|
Loading…
Reference in New Issue
Block a user