]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QLPainter.h
Some string(widget->text()) fixes. Weirdness
[lyx.git] / src / frontends / qt2 / QLPainter.h
index 2410f4d60ad48eebd63a8c8ae090e8e4b5eaa752..b69bc8575baf8883115a56469b6f7a23d5dd58a1 100644 (file)
@@ -25,6 +25,7 @@
 class LyXFont;
 class QWorkArea;
 class QPainter;
+class QString;
 
 /**
  * QLPainter - a painter implementation for Xlib
@@ -118,12 +119,10 @@ public:
        /// draw a char at position x, y (y is the baseline)
        virtual Painter & text(int x, int y,
                char c, LyXFont const & f);
-
 private:
        /// draw small caps text
        void smallCapsText(int x, int y,
-               char const * str, size_t l,
-               LyXFont const & f);
+               QString const & str, LyXFont const & f);
 
        /// set pen parameters
        QPainter & setPen(LColor::color c,