long lines

This commit is contained in:
Andreas Preikschat 2010-11-16 18:57:13 +01:00
parent 80721aad35
commit 588cfa111f
1 changed files with 8 additions and 6 deletions

View File

@ -573,7 +573,8 @@ class BibleMediaItem(MediaManagerItem):
for verse in self.search_results: for verse in self.search_results:
text.append((verse.book.name, verse.chapter, verse.verse, text.append((verse.book.name, verse.chapter, verse.verse,
verse.verse)) verse.verse))
self.second_search_results = bibles[second_bible].get_verses(text) self.second_search_results = \
bibles[second_bible].get_verses(text)
if self.ClearQuickSearchComboBox.currentIndex() == 0: if self.ClearQuickSearchComboBox.currentIndex() == 0:
self.listView.clear() self.listView.clear()
if self.listView.count() != 0 and self.search_results: if self.listView.count() != 0 and self.search_results:
@ -626,7 +627,8 @@ class BibleMediaItem(MediaManagerItem):
'second_bible': QtCore.QVariant(second_bible), 'second_bible': QtCore.QVariant(second_bible),
'second_version': QtCore.QVariant(second_version.value), 'second_version': QtCore.QVariant(second_version.value),
'second_copyright': QtCore.QVariant(second_copyright.value), 'second_copyright': QtCore.QVariant(second_copyright.value),
'second_permissions': QtCore.QVariant(second_permissions.value), 'second_permissions': QtCore.QVariant(
second_permissions.value),
'second_text': QtCore.QVariant( 'second_text': QtCore.QVariant(
self.second_search_results[count].text) self.second_search_results[count].text)
} }
@ -702,8 +704,8 @@ class BibleMediaItem(MediaManagerItem):
if footer not in raw_footer: if footer not in raw_footer:
raw_footer.append(footer) raw_footer.append(footer)
if second_bible: if second_bible:
footer = u'%s (%s %s %s)' % (book, second_version, second_copyright, footer = u'%s (%s %s %s)' % (book, second_version,
second_permissions) second_copyright, second_permissions)
if footer not in raw_footer: if footer not in raw_footer:
raw_footer.append(footer) raw_footer.append(footer)
bible_text = u'%s %s\n\n%s %s' % (verse_text, text, verse_text, bible_text = u'%s %s\n\n%s %s' % (verse_text, text, verse_text,
@ -807,8 +809,8 @@ class BibleMediaItem(MediaManagerItem):
def checkTitle(self, item, old_item): def checkTitle(self, item, old_item):
""" """
This methode checks if we are at the end of an verse range. If that is This methode checks if we are at the end of an verse range. If that is
the case, we return True, otherwise False. E. g. if we added Genesis 1:1-6, the case, we return True, otherwise False. E. g. if we added
but the next verse is Daniel 2:14, we return True. Genesis 1:1-6, but the next verse is Daniel 2:14, we return True.
``item`` ``item``
The item we are dealing with at the moment. The item we are dealing with at the moment.