Snapshot/SnapshotTimer.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3656
441956d8fce5
--- a/Snapshot/SnapshotTimer.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Snapshot/SnapshotTimer.py	Thu Apr 03 23:05:31 2014 +0200
@@ -38,7 +38,7 @@
         
         # text is taken from paintEvent with maximum number plus some margin
         self.resize(
-            self.fontMetrics().width(self.trUtf8(
+            self.fontMetrics().width(self.tr(
                 "Snapshot will be taken in %n seconds", "", 99)) + 6,
             self.fontMetrics().height() + 4)
         
@@ -99,8 +99,8 @@
                 textColor = pal.color(QPalette.Active, QPalette.Base)
             painter.setPen(textColor)
             painter.setBrush(textBackgroundColor)
-            helpText = self.trUtf8("Snapshot will be taken in %n seconds", "",
-                                   self.__length - self.__time)
+            helpText = self.tr("Snapshot will be taken in %n seconds", "",
+                               self.__length - self.__time)
             textRect = painter.boundingRect(
                 self.rect().adjusted(2, 2, -2, -2),
                 Qt.AlignHCenter | Qt.TextSingleLine, helpText)

eric ide

mercurial