From 19b3779d44c771a45cbc3445c41f0b24743627a0 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 17 Aug 2006 08:56:53 +0000 Subject: [PATCH] get rid of QT3_SUPPORT and some cleanup git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14751 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/QLPainter.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/QLPainter.C b/src/frontends/qt4/QLPainter.C index 8b8bebac72..3a388e389a 100644 --- a/src/frontends/qt4/QLPainter.C +++ b/src/frontends/qt4/QLPainter.C @@ -210,7 +210,7 @@ void QLPainter::smallCapsText(int x, int y, int tmpx = x; size_t ls = s.length(); for (unsigned int i = 0; i < ls; ++i) { - QChar const c = s[i].upper(); + QChar const c = s[i].toUpper(); if (c != s.at(i)) { qp_->setFont(qsmallfont); qp_->drawText(tmpx, y, c); @@ -243,7 +243,7 @@ void QLPainter::text(int x, int y, char_type const * s, size_t ls, //std::vector ucs2 = ucs4_to_ucs2(in); std::vector ucs2 = ucs4_to_ucs2(s, ls); ucs2.push_back(0); - QString str = QString::fromUcs2(&ucs2[0]); + QString str = QString::fromUtf16(&ucs2[0]); #endif #if 0