forked from openlp/openlp
use Qt method if available
This commit is contained in:
parent
ce7029776a
commit
9e03cf0715
@ -32,7 +32,7 @@ import logging
|
|||||||
import os.path
|
import os.path
|
||||||
import types
|
import types
|
||||||
|
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui, Qt
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -308,6 +308,8 @@ def create_separated_list(stringlist):
|
|||||||
``stringlist``
|
``stringlist``
|
||||||
List of unicode strings
|
List of unicode strings
|
||||||
"""
|
"""
|
||||||
|
if Qt.qVersion() >= u'4.8':
|
||||||
|
return unicode(QtCore.QLocale.createSeparatedList(stringlist))
|
||||||
if not stringlist:
|
if not stringlist:
|
||||||
return u''
|
return u''
|
||||||
elif len(stringlist) == 1:
|
elif len(stringlist) == 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user