Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Strings are UTF8 encoded in drawText.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 22 Nov 2010 20:25:09 +0000 (21:25 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 22 Nov 2010 20:27:22 +0000 (21:27 +0100)
CHANGES
DrawingWindow.cpp

diff --git a/CHANGES b/CHANGES
index e7e94c5..99f58e8 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,17 +1,17 @@
--- Mon, 22 Nov 2010 14:54:43 +0100
+-- Mon, 22 Nov 2010 21:27:00 +0100
 
-        * Add methods getFont() and setFont().
-        * Add methods drawTriangle() and fillTriangle().
+        * Add methods drawTriangle and fillTriangle.
+        * Add methods getFont and setFont.
+       * Mark strings as UTF8 encoded for drawText.
 
 -- Tue, 27 Apr 2010 17:30:13 +0200
 
-        * Make *sleep() methods static.
+        * Make *sleep methods static.
         * Recode to UTF8.
 
 -- Wed, 20 Jan 2010 19:20:49 +0100
 
-        * Add DrawingWindow::waitMousePress().
-        * Add DrawingWindow::mousePressEvent().
+        * Add methods waitMousePress and mousePressEvent.
 
 -- Tue, 27 Nov 2007 09:31:18 +0100
 
index bb6a3e2..554e7fb 100644 (file)
@@ -1034,7 +1034,7 @@ void DrawingWindow::realDrawText(int x, int y, const char *text, int flags)
         r.setTop(y);
     }
     syncMutex.lock();
-    painter->drawText(r, flags, text, &r);
+    painter->drawText(r, flags, QString::fromUtf8(text), &r);
     dirty(r);
     syncCondition.wakeAll();
     syncMutex.unlock();