forked from openlp/openlp
more changes and fixes
This commit is contained in:
parent
8acc980ce4
commit
d0bcc06d35
@ -202,6 +202,7 @@ class Renderer:
|
||||
bboxes = []
|
||||
for line in lines:
|
||||
bboxes.append(self._render_single_line(line, footer))
|
||||
print line, bboxes
|
||||
|
||||
numlines = len(lines)
|
||||
bottom = self._rect.bottom()
|
||||
@ -214,6 +215,8 @@ class Renderer:
|
||||
by = 0
|
||||
for (x, y) in bboxes[startline:endline]:
|
||||
by += y
|
||||
print by
|
||||
print by , bottom
|
||||
if by > bottom:
|
||||
good=0
|
||||
break
|
||||
@ -221,6 +224,7 @@ class Renderer:
|
||||
endline = startline+ratio
|
||||
# if good == 1:
|
||||
# break
|
||||
print "---------"
|
||||
|
||||
retval = []
|
||||
numlines_per_page = ratio
|
||||
|
@ -54,7 +54,7 @@ class BibleMediaItem(MediaManagerItem):
|
||||
This is the custom media manager item for Bibles.
|
||||
"""
|
||||
global log
|
||||
log=logging.getLogger(u'BibleMediaItem')
|
||||
log = logging.getLogger(u'BibleMediaItem')
|
||||
log.info(u'Bible Media Item loaded')
|
||||
|
||||
def __init__(self, parent, icon, title):
|
||||
@ -204,7 +204,7 @@ class BibleMediaItem(MediaManagerItem):
|
||||
self.BibleListView.setAlternatingRowColors(True)
|
||||
self.BibleListData = TextListData()
|
||||
self.BibleListView.setModel(self.BibleListData)
|
||||
self.BibleListView.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)
|
||||
self.BibleListView.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
|
||||
self.BibleListView.setDragEnabled(True)
|
||||
|
||||
self.PageLayout.addWidget(self.BibleListView)
|
||||
|
@ -89,7 +89,7 @@ class ListWithPreviews(QtCore.QAbstractListModel):
|
||||
else:
|
||||
retval = QtCore.QVariant()
|
||||
if type(retval) is not type(QtCore.QVariant):
|
||||
return QVariant(retval)
|
||||
return QtCore.QVariant(retval)
|
||||
else:
|
||||
return retval
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user