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