]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiPainter.h
Allow automatic text direction in Painter::text()
[lyx.git] / src / frontends / qt4 / GuiPainter.h
index 10d3070b903da5c8820292419376babaefce3ab7..cb091075d98ec21b61bf19c7e7413e2260648c8e 100644 (file)
@@ -180,12 +180,15 @@ private:
        void setQPainterPen(QColor const & col,
                line_style ls = line_solid, int lw = thin_line);
 
+       // Direction for painting text
+       enum Direction { LtR, RtL, Auto };
+
        // Helper for text() method
-       void do_drawText(int x, int y, QString str, bool rtl, FontInfo const & f, QFont ff);
+       void do_drawText(int x, int y, QString str, Direction dir, FontInfo const & f, QFont ff);
 
        // Real text() method
        void text(int x, int y, docstring const & s,
-              FontInfo const & f, bool const rtl,
+              FontInfo const & f, Direction const dir,
               double const wordspacing, double tw);
 
        QColor current_color_;