This commit is contained in:
Andreas Preikschat 2011-01-12 20:31:46 +01:00
parent 98b0d9b4a8
commit 727f7fe7bf
3 changed files with 18 additions and 13 deletions

View File

@ -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

View File

@ -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())