forked from openlp/openlp
fixed version number compare
This commit is contained in:
parent
2c8f0e66b2
commit
818bd4a435
@ -30,6 +30,7 @@
|
|||||||
The :mod:`lib` module contains most of the components and libraries that make
|
The :mod:`lib` module contains most of the components and libraries that make
|
||||||
OpenLP work.
|
OpenLP work.
|
||||||
"""
|
"""
|
||||||
|
from distutils.version import LooseVersion
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
@ -366,7 +367,8 @@ def create_separated_list(stringlist):
|
|||||||
``stringlist``
|
``stringlist``
|
||||||
List of unicode strings
|
List of unicode strings
|
||||||
"""
|
"""
|
||||||
if Qt.PYQT_VERSION_STR >= u'4.9' and Qt.qVersion() >= u'4.8':
|
if LooseVersion(Qt.PYQT_VERSION_STR) >= LooseVersion(u'4.9') and \
|
||||||
|
LooseVersion(Qt.qVersion()) >= LooseVersion(u'4.8'):
|
||||||
return QtCore.QLocale().createSeparatedList(stringlist)
|
return QtCore.QLocale().createSeparatedList(stringlist)
|
||||||
if not stringlist:
|
if not stringlist:
|
||||||
return u''
|
return u''
|
||||||
|
Loading…
Reference in New Issue
Block a user