X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiPainter.h;h=eadf9851669141a6c7a677f13c76afc71c661cad;hb=1e075bdf55c9d54a01e73c4d02268cfab0cffd4f;hp=5538d14fe4faa84c43f63593f989905de32aeddb;hpb=b63421b7dc65e0c721f8928d1330b9bb2cff43d8;p=lyx.git diff --git a/src/frontends/qt4/GuiPainter.h b/src/frontends/qt4/GuiPainter.h index 5538d14fe4..eadf985166 100644 --- a/src/frontends/qt4/GuiPainter.h +++ b/src/frontends/qt4/GuiPainter.h @@ -147,7 +147,7 @@ public: private: /// check the font, and if set, draw an underline void underline(FontInfo const & f, - int x, int y, int width); + int x, int y, int width, line_style ls = line_solid); /// check the font, and if set, draw an dashed underline void dashedUnderline(FontInfo const & f, @@ -168,6 +168,9 @@ private: void setQPainterPen(QColor const & col, line_style ls = line_solid, int lw = thin_line); + // Helper for text() method + void do_drawText(int x, int y, QString str, bool rtl, FontInfo const & f, QFont ff); + QColor current_color_; Painter::line_style current_ls_; int current_lw_;