From 9e03cf0715396a1848bd90054252767284d040d4 Mon Sep 17 00:00:00 2001 From: M2j Date: Fri, 17 Feb 2012 19:51:01 +0100 Subject: [PATCH] use Qt method if available --- openlp/core/lib/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openlp/core/lib/__init__.py b/openlp/core/lib/__init__.py index d77f63105..35b1a6d78 100644 --- a/openlp/core/lib/__init__.py +++ b/openlp/core/lib/__init__.py @@ -32,7 +32,7 @@ import logging import os.path import types -from PyQt4 import QtCore, QtGui +from PyQt4 import QtCore, QtGui, Qt log = logging.getLogger(__name__) @@ -308,6 +308,8 @@ def create_separated_list(stringlist): ``stringlist`` List of unicode strings """ + if Qt.qVersion() >= u'4.8': + return unicode(QtCore.QLocale.createSeparatedList(stringlist)) if not stringlist: return u'' elif len(stringlist) == 1: