mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +00:00
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
This commit is contained in:
parent
6240926584
commit
19b3779d44
@ -210,7 +210,7 @@ void QLPainter::smallCapsText(int x, int y,
|
|||||||
int tmpx = x;
|
int tmpx = x;
|
||||||
size_t ls = s.length();
|
size_t ls = s.length();
|
||||||
for (unsigned int i = 0; i < ls; ++i) {
|
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)) {
|
if (c != s.at(i)) {
|
||||||
qp_->setFont(qsmallfont);
|
qp_->setFont(qsmallfont);
|
||||||
qp_->drawText(tmpx, y, c);
|
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<unsigned short> ucs2 = ucs4_to_ucs2(in);
|
//std::vector<unsigned short> ucs2 = ucs4_to_ucs2(in);
|
||||||
std::vector<unsigned short> ucs2 = ucs4_to_ucs2(s, ls);
|
std::vector<unsigned short> ucs2 = ucs4_to_ucs2(s, ls);
|
||||||
ucs2.push_back(0);
|
ucs2.push_back(0);
|
||||||
QString str = QString::fromUcs2(&ucs2[0]);
|
QString str = QString::fromUtf16(&ucs2[0]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
Loading…
Reference in New Issue
Block a user