fixed CQ for bitmessageqt.retranslateui module #1650
|
@ -1,9 +1,12 @@
|
||||||
|
|||||||
from os import path
|
"""RetranslateMixin module.
|
||||||
Can you come up with a better docstring? Can you come up with a better docstring?
Like something about being able to dynamically change language during runtime. Like something about being able to dynamically change language during runtime.
better wording better wording
better wording better wording
Can you come up with a better docstring? Can you come up with a better docstring?
Like something about being able to dynamically change language during runtime. Like something about being able to dynamically change language during runtime.
better wording better wording
better wording better wording
|
|||||||
|
"""
|
||||||
Can you come up with a better docstring? Can you come up with a better docstring?
Like something about being able to dynamically change language during runtime. Like something about being able to dynamically change language during runtime.
better wording better wording
better wording better wording
|
|||||||
|
# pylint: disable=too-few-public-methods
|
||||||
Can you come up with a better docstring? Can you come up with a better docstring?
Like something about being able to dynamically change language during runtime. Like something about being able to dynamically change language during runtime.
better wording better wording
better wording better wording
|
|||||||
from PyQt4 import QtGui
|
from PyQt4 import QtGui
|
||||||
from debug import logger
|
|
||||||
Can you come up with a better docstring? Can you come up with a better docstring?
Like something about being able to dynamically change language during runtime. Like something about being able to dynamically change language during runtime.
better wording better wording
better wording better wording
|
|||||||
import widgets
|
import widgets
|
||||||
|
|
||||||
|
|
||||||
Can you come up with a better docstring? Can you come up with a better docstring?
Like something about being able to dynamically change language during runtime. Like something about being able to dynamically change language during runtime.
better wording better wording
better wording better wording
|
|||||||
class RetranslateMixin(object):
|
class RetranslateMixin(object):
|
||||||
|
"""RetranslateMixin class for dynamically change language during runtime."""
|
||||||
Can you come up with a better docstring? Can you come up with a better docstring?
Like something about being able to dynamically change language during runtime. Like something about being able to dynamically change language during runtime.
better wording better wording
better wording better wording
|
|||||||
def retranslateUi(self):
|
def retranslateUi(self):
|
||||||
defaults = QtGui.QWidget()
|
defaults = QtGui.QWidget()
|
||||||
widgets.load(self.__class__.__name__.lower() + '.ui', defaults)
|
widgets.load(self.__class__.__name__.lower() + '.ui', defaults)
|
||||||
|
@ -13,6 +16,8 @@ class RetranslateMixin(object):
|
||||||
Can you come up with a better docstring? Can you come up with a better docstring?
Can you come up with a better docstring? Can you come up with a better docstring?
Like something about being able to dynamically change language during runtime. Like something about being able to dynamically change language during runtime.
Like something about being able to dynamically change language during runtime. Like something about being able to dynamically change language during runtime.
better wording better wording
better wording better wording
better wording better wording
better wording better wording
|
|||||||
getattr(self, attr).setText(getattr(defaults, attr).text())
|
getattr(self, attr).setText(getattr(defaults, attr).text())
|
||||||
elif isinstance(value, QtGui.QTableWidget):
|
elif isinstance(value, QtGui.QTableWidget):
|
||||||
for i in range(value.columnCount()):
|
for i in range(value.columnCount()):
|
||||||
getattr(self, attr).horizontalHeaderItem(i).setText(getattr(defaults, attr).horizontalHeaderItem(i).text())
|
getattr(self, attr).horizontalHeaderItem(i).setText(
|
||||||
Can you come up with a better docstring? Can you come up with a better docstring?
Like something about being able to dynamically change language during runtime. Like something about being able to dynamically change language during runtime.
better wording better wording
better wording better wording
Can you come up with a better docstring? Can you come up with a better docstring?
Like something about being able to dynamically change language during runtime. Like something about being able to dynamically change language during runtime.
better wording better wording
better wording better wording
|
|||||||
|
getattr(defaults, attr).horizontalHeaderItem(i).text())
|
||||||
Can you come up with a better docstring? Can you come up with a better docstring?
Like something about being able to dynamically change language during runtime. Like something about being able to dynamically change language during runtime.
better wording better wording
better wording better wording
|
|||||||
for i in range(value.rowCount()):
|
for i in range(value.rowCount()):
|
||||||
getattr(self, attr).verticalHeaderItem(i).setText(getattr(defaults, attr).verticalHeaderItem(i).text())
|
getattr(self, attr).verticalHeaderItem(i).setText(
|
||||||
Can you come up with a better docstring? Can you come up with a better docstring?
Like something about being able to dynamically change language during runtime. Like something about being able to dynamically change language during runtime.
better wording better wording
better wording better wording
Can you come up with a better docstring? Can you come up with a better docstring?
Like something about being able to dynamically change language during runtime. Like something about being able to dynamically change language during runtime.
better wording better wording
better wording better wording
|
|||||||
|
getattr(defaults, attr).verticalHeaderItem(i).text())
|
||||||
Can you come up with a better docstring? Can you come up with a better docstring?
Like something about being able to dynamically change language during runtime. Like something about being able to dynamically change language during runtime.
better wording better wording
better wording better wording
|
|||||||
|
|
||||||
Can you come up with a better docstring? Can you come up with a better docstring?
Can you come up with a better docstring? Can you come up with a better docstring?
Like something about being able to dynamically change language during runtime. Like something about being able to dynamically change language during runtime.
Like something about being able to dynamically change language during runtime. Like something about being able to dynamically change language during runtime.
better wording better wording
better wording better wording
better wording better wording
better wording better wording
|
Can you come up with a better docstring?
Can you come up with a better docstring?
Like something about being able to dynamically change language during runtime.
Like something about being able to dynamically change language during runtime.
better wording
better wording
better wording
better wording