From 89d5c4ed03a1b04103bd60c813c073190998b81e Mon Sep 17 00:00:00 2001 From: Asger Ottar Alstrup Date: Fri, 3 Nov 2006 08:17:26 +0000 Subject: [PATCH] - Sort lyxlex table - Get rid of setRenderHint for anti-aliasing, because we should respect user windows setting git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15699 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/MenuBackend.C | 4 ++-- src/frontends/qt4/QLPainter.C | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/MenuBackend.C b/src/MenuBackend.C index 38c77e0f72..fddccfb6c8 100644 --- a/src/MenuBackend.C +++ b/src/MenuBackend.C @@ -238,10 +238,10 @@ Menu & Menu::read(LyXLex & lex) }; struct keyword_item menutags[md_last - 1] = { + { "bookmarks", md_bookmarks }, { "branches", md_branches }, { "charstyles", md_charstyles }, { "documents", md_documents }, - { "bookmarks", md_bookmarks }, { "end", md_endmenu }, { "exportformats", md_exportformats }, { "floatinsert", md_floatinsert }, @@ -255,8 +255,8 @@ Menu & Menu::read(LyXLex & lex) { "separator", md_separator }, { "submenu", md_submenu }, { "toc", md_toc }, - { "updateformats", md_updateformats }, { "toolbars", md_toolbars }, + { "updateformats", md_updateformats }, { "viewformats", md_viewformats } }; diff --git a/src/frontends/qt4/QLPainter.C b/src/frontends/qt4/QLPainter.C index beba02550c..34f856731d 100644 --- a/src/frontends/qt4/QLPainter.C +++ b/src/frontends/qt4/QLPainter.C @@ -35,7 +35,6 @@ namespace frontend { QLPainter::QLPainter(QPaintDevice * device) : QPainter(device), Painter() { - setRenderHint(QPainter::TextAntialiasing); // new QPainter has default QPen: current_color_ = LColor::black; current_ls_ = line_solid; @@ -238,8 +237,10 @@ int QLPainter::text(int x, int y, char_type const * s, size_t ls, setFont(fi.font); // We need to draw the text as LTR as we use our own bidi code. setLayoutDirection(Qt::LeftToRight); - if (isDrawingEnabled()) + if (isDrawingEnabled()) { + lyxerr << "draw " << std::string(str.toUtf8()) << " at " << x << "," << y << std::endl; drawText(x, y, str); + } // Here we use the font width cache instead of // textwidth = fontMetrics().width(str); // because the above is awfully expensive on MacOSX