forked from openlp/openlp
use try instead of version sting checking
This commit is contained in:
parent
8dca5b4647
commit
384d61b302
@ -64,11 +64,12 @@ class SearchEdit(QtGui.QLineEdit):
|
|||||||
)
|
)
|
||||||
self._updateStyleSheet()
|
self._updateStyleSheet()
|
||||||
self.setAcceptDrops(False)
|
self.setAcceptDrops(False)
|
||||||
#if Qt.PYQT_VERSION_STR >= u'4.9.1' and Qt.qVersion() >= u'4.7':
|
# setPlaceholderText has been implemented in Qt 4.7 and in at least
|
||||||
if True:
|
# PyQt 4.9 (I am not sure, if it was implemented in PyQt 4.8).
|
||||||
print u'pyqt:', Qt.PYQT_VERSION_STR
|
try:
|
||||||
print u'qt:', Qt.qVersion()
|
|
||||||
self.setPlaceholderText(translate('OpenLP.searchedit', 'Search...'))
|
self.setPlaceholderText(translate('OpenLP.searchedit', 'Search...'))
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
|
|
||||||
def _updateStyleSheet(self):
|
def _updateStyleSheet(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user