E5Graphics/E5GraphicsView.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3656
441956d8fce5
diff -r 96232974dcdb -r 645c12de6b0c E5Graphics/E5GraphicsView.py
--- a/E5Graphics/E5GraphicsView.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/E5Graphics/E5GraphicsView.py	Thu Apr 03 23:05:31 2014 +0200
@@ -53,7 +53,7 @@
         self.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOn)
         self.setViewportUpdateMode(QGraphicsView.SmartViewportUpdate)
         
-        self.setWhatsThis(self.trUtf8(
+        self.setWhatsThis(self.tr(
             "<b>Graphics View</b>\n"
             "<p>This graphics view is used to show a diagram. \n"
             "There are various actions available to manipulate the \n"
@@ -368,7 +368,7 @@
             painter.drawPixmap(marginX, marginY, diagram,
                                offsetX, offsetY, widthX, heightY)
             # write a foot note
-            s = self.trUtf8("{0}, Page {1}").format(diagramName, page + 1)
+            s = self.tr("{0}, Page {1}").format(diagramName, page + 1)
             tc = QColor(50, 50, 50)
             painter.setPen(tc)
             painter.drawRect(marginX, marginY, width, height)

eric ide

mercurial