diff -r 9a21c547de5f -r a9a94491c4fd Snapshot/SnapshotTimer.py --- a/Snapshot/SnapshotTimer.py Fri Jan 10 19:30:21 2014 +0100 +++ b/Snapshot/SnapshotTimer.py Sat Jan 11 11:55:33 2014 +0100 @@ -36,7 +36,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) @@ -97,8 +97,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)