forked from openlp/openlp
Updated from review comments
This commit is contained in:
parent
efa1e8c2d9
commit
a8a7e675a4
@ -118,7 +118,8 @@ class MainDisplay(DisplayWidget):
|
|||||||
DisplayWidget.__init__(self, parent)
|
DisplayWidget.__init__(self, parent)
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
self.setWindowTitle(u'OpenLP Display')
|
self.setWindowTitle(u'OpenLP Display')
|
||||||
try: # WA_TranslucentBackground not available in QT4.4
|
# WA_TranslucentBackground is not available in QT4.4
|
||||||
|
try:
|
||||||
self.setAttribute(QtCore.Qt.WA_TranslucentBackground)
|
self.setAttribute(QtCore.Qt.WA_TranslucentBackground)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
@ -344,7 +345,8 @@ class VideoDisplay(Phonon.VideoWidget):
|
|||||||
Phonon.createPath(self.mediaObject, self)
|
Phonon.createPath(self.mediaObject, self)
|
||||||
Phonon.createPath(self.mediaObject, self.audioObject)
|
Phonon.createPath(self.mediaObject, self.audioObject)
|
||||||
flags = QtCore.Qt.FramelessWindowHint | QtCore.Qt.Dialog
|
flags = QtCore.Qt.FramelessWindowHint | QtCore.Qt.Dialog
|
||||||
try: # WindowsStaysOnBottomHint is not available in QT4.4
|
# WindowsStaysOnBottomHint is not available in QT4.4
|
||||||
|
try:
|
||||||
flags = flags | QtCore.Qt.WindowStaysOnBottomHint
|
flags = flags | QtCore.Qt.WindowStaysOnBottomHint
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
|
@ -337,7 +337,7 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
# load bibles into the combo boxes
|
# load bibles into the combo boxes
|
||||||
first = True
|
first = True
|
||||||
for bible in bibles:
|
for bible in bibles:
|
||||||
if bible is not None:
|
if bible:
|
||||||
self.QuickVersionComboBox.addItem(bible)
|
self.QuickVersionComboBox.addItem(bible)
|
||||||
self.QuickSecondBibleComboBox.addItem(bible)
|
self.QuickSecondBibleComboBox.addItem(bible)
|
||||||
self.AdvancedVersionComboBox.addItem(bible)
|
self.AdvancedVersionComboBox.addItem(bible)
|
||||||
|
Loading…
Reference in New Issue
Block a user