forked from openlp/openlp
This commit is contained in:
parent
98b0d9b4a8
commit
727f7fe7bf
@ -60,6 +60,7 @@ class ItemCapabilities(object):
|
||||
AddIfNewItem = 9
|
||||
ProvidesOwnDisplay = 10
|
||||
|
||||
|
||||
class ServiceItem(object):
|
||||
"""
|
||||
The service item is a base class for the plugins to use to interact with
|
||||
|
@ -412,13 +412,17 @@ class SlideController(QtGui.QWidget):
|
||||
max_width = self.PreviewFrame.width() - self.grid.margin() * 2
|
||||
self.SlidePreview.setFixedSize(QtCore.QSize(max_width,
|
||||
max_width / self.ratio))
|
||||
width = self.parent.ControlSplitter.sizes()[self.split]
|
||||
self.PreviewListWidget.setColumnWidth(0, width)
|
||||
# Make sure that the frames have the correct size.
|
||||
if self.serviceItem:
|
||||
self.PreviewListWidget.resizeRowsToContents()
|
||||
# Sort out image heights (Songs, bibles excluded)
|
||||
if self.serviceItem and not self.serviceItem.is_text():
|
||||
if not self.serviceItem.is_text():
|
||||
width = self.parent.ControlSplitter.sizes()[self.split]
|
||||
for framenumber in range(len(self.serviceItem.get_frames())):
|
||||
self.PreviewListWidget.setRowHeight(
|
||||
framenumber, width / self.ratio)
|
||||
self.PreviewListWidget.setColumnWidth(0,
|
||||
self.PreviewListWidget.viewport().size().width())
|
||||
|
||||
def onSongBarHandler(self):
|
||||
request = unicode(self.sender().text())
|
||||
|
Loading…
Reference in New Issue
Block a user