encoding = encodings.symbol_encoding();
QString str;
+#if QT_VERSION >= 0x030000
str.setLength(ls);
for (size_t i = 0; i < ls; ++i)
str[i] = QChar(encoding->ucs(s[i]));
-
-#if QT_VERSION >= 0x030000
// HACK: QT3 refuses to show single compose characters
if (ls = 1 && str[0].unicode() >= 0x05b0 && str[0].unicode() <= 0x05c2)
str = ' '+str;
+#else
+ for (size_t i = 0; i < ls; ++i)
+ str += QChar(encoding->ucs(s[i]));
#endif
if (f.realShape() != LyXFont::SMALLCAPS_SHAPE) {
encoding = encodings.symbol_encoding();
QString str;
+#if QT_VERSION >= 0x030000
str.setLength(ls);
for (size_t i = 0; i < ls; ++i)
str[i] = QChar(encoding->ucs(s[i]));
+#else
+ for (size_t i = 0; i < ls; ++i)
+ str += QChar(encoding->ucs(s[i]));
+#endif
if (f.realShape() != LyXFont::SMALLCAPS_SHAPE) {
return metrics(f).width(str);