summaryrefslogtreecommitdiff
path: root/raphodo/errorlog.py
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-10-02 06:51:13 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-10-02 06:51:13 +0200
commitc5fc6c6030d7d9d1b2af3d5165bebed3decd741b (patch)
treedfacccc9ae0747e53e53e5388b2ecd0623e040c3 /raphodo/errorlog.py
parent77dd64c0757c0191b276e65c24ee9874959790c8 (diff)
New upstream version 0.9.4upstream/0.9.4
Diffstat (limited to 'raphodo/errorlog.py')
-rw-r--r--raphodo/errorlog.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/raphodo/errorlog.py b/raphodo/errorlog.py
index 7651d33..763d094 100644
--- a/raphodo/errorlog.py
+++ b/raphodo/errorlog.py
@@ -49,6 +49,7 @@ import raphodo.qrc_resources as qrc_resources
from raphodo.constants import ErrorType
from raphodo.rpdfile import RPDFile
from raphodo.problemnotification import Problem, Problems
+from raphodo.viewutils import translateButtons
# ErrorLogMessage = namedtuple('ErrorLogMessage', 'title body name uri')
@@ -205,8 +206,10 @@ class ErrorReport(QDialog):
self.wholeWords.toggled.connect(self.wholeWordsToggled)
self.findResults = QLabel()
- self.findResults.setMinimumWidth(QFontMetrics(QFont()).boundingRect(
- _('%s of %s matches') % (1000, 1000)).width() + spacing)
+ self.findResults.setMinimumWidth(
+ QFontMetrics(QFont()).boundingRect(_('%s of %s matches') % (1000, 1000)).width()
+ + spacing
+ )
findLayout = QHBoxLayout()
findLayout.setSpacing(0)
@@ -225,6 +228,7 @@ class ErrorReport(QDialog):
buttons = QDialogButtonBox(QDialogButtonBox.Close)
+ translateButtons(buttons)
self.clear = buttons.addButton(_('Clear'), QDialogButtonBox.ActionRole) # type: QPushButton
buttons.rejected.connect(self.reject)
self.clear.clicked.connect(self.clearClicked)