]> git.lyx.org Git - lyx.git/commitdiff
revert to revision 15266
authorAbdelrazak Younes <younes@lyx.org>
Sun, 8 Oct 2006 14:24:12 +0000 (14:24 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 8 Oct 2006 14:24:12 +0000 (14:24 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15280 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/QLPainter.C
src/frontends/qt4/QLPainter.h

index 9bd17c44b426e3b4b1142a39e18b5f71afa27035..92744f0d2a75a9bb389bc5ea9d8409e39b860517 100644 (file)
@@ -183,13 +183,13 @@ void QLPainter::image(int x, int y, int w, int h,
 }
 
 
-int QLPainter::text(int x, int y, docstring const & s, LyXFont const & f)
+void QLPainter::text(int x, int y, docstring const & s, LyXFont const & f)
 {
     return text(x, y, reinterpret_cast<char_type const *>(s.data()), s.length(), f);
 }
 
 
-int QLPainter::text(int x, int y, char_type c, LyXFont const & f)
+void QLPainter::text(int x, int y, char_type c, LyXFont const & f)
 {
        char_type s[2] = { c, char_type('\0') };
        return text(x, y, s, 1, f);
@@ -222,7 +222,7 @@ int QLPainter::smallCapsText(int x, int y,
 }
 
 
-int QLPainter::text(int x, int y, char_type const * s, size_t ls,
+void QLPainter::text(int x, int y, char_type const * s, size_t ls,
        LyXFont const & f)
 {
 #if 0
@@ -260,7 +260,6 @@ int QLPainter::text(int x, int y, char_type const * s, size_t ls,
                underline(f, x, y, textwidth);
        }
 
-       return textwidth;
 }
 
 
index 145e974c564f410d5aad3d812f3e16ae019a4f23..f53b0e67c9323504fb59b21f1745b6b473079b5c 100644 (file)
@@ -103,18 +103,18 @@ public:
                lyx::graphics::Image const & image);
 
        /// draw a string at position x, y (y is the baseline)
-       virtual int text(int x, int y,
+       virtual void text(int x, int y,
                lyx::docstring const & str, LyXFont const & f);
 
        /** Draw a string at position x, y (y is the baseline)
         *  This is just for fast drawing
         */
-       virtual int text(int x, int y,
+       virtual void text(int x, int y,
                 lyx::char_type const * str, size_t l,
                LyXFont const & f);
 
        /// draw a char at position x, y (y is the baseline)
-       virtual int text(int x, int y,
+       virtual void text(int x, int y,
                 lyx::char_type c, LyXFont const & f);
 
        /// draw a pixmap from the image cache