Draft: fixed wrong QT_TRANSLATE_NOOP usage in Draft Objects
.
This commit is contained in:
committed by
Yorik van Havre
parent
279453662f
commit
1983172f5a
@@ -43,37 +43,29 @@ class Rectangle(DraftObject):
|
||||
def __init__(self, obj):
|
||||
super(Rectangle, self).__init__(obj, "Rectangle")
|
||||
|
||||
_tip = "Length of the rectangle"
|
||||
obj.addProperty("App::PropertyDistance", "Length",
|
||||
"Draft",QT_TRANSLATE_NOOP("App::Property",_tip))
|
||||
_tip = QT_TRANSLATE_NOOP("App::Property", "Length of the rectangle")
|
||||
obj.addProperty("App::PropertyDistance", "Length", "Draft", _tip)
|
||||
|
||||
_tip = "Height of the rectangle"
|
||||
obj.addProperty("App::PropertyDistance", "Height",
|
||||
"Draft",QT_TRANSLATE_NOOP("App::Property", _tip))
|
||||
_tip = QT_TRANSLATE_NOOP("App::Property", "Height of the rectangle")
|
||||
obj.addProperty("App::PropertyDistance", "Height", "Draft", _tip)
|
||||
|
||||
_tip = "Radius to use to fillet the corners"
|
||||
obj.addProperty("App::PropertyLength", "FilletRadius",
|
||||
"Draft",QT_TRANSLATE_NOOP("App::Property", _tip))
|
||||
_tip = QT_TRANSLATE_NOOP("App::Property", "Radius to use to fillet the corners")
|
||||
obj.addProperty("App::PropertyLength", "FilletRadius", "Draft", _tip)
|
||||
|
||||
_tip = "Size of the chamfer to give to the corners"
|
||||
obj.addProperty("App::PropertyLength", "ChamferSize",
|
||||
"Draft",QT_TRANSLATE_NOOP("App::Property", _tip))
|
||||
_tip = QT_TRANSLATE_NOOP("App::Property", "Size of the chamfer to give to the corners")
|
||||
obj.addProperty("App::PropertyLength", "ChamferSize", "Draft", _tip)
|
||||
|
||||
_tip = "Create a face"
|
||||
obj.addProperty("App::PropertyBool", "MakeFace",
|
||||
"Draft",QT_TRANSLATE_NOOP("App::Property", _tip))
|
||||
_tip = QT_TRANSLATE_NOOP("App::Property", "Create a face")
|
||||
obj.addProperty("App::PropertyBool", "MakeFace", "Draft", _tip)
|
||||
|
||||
_tip = "Horizontal subdivisions of this rectangle"
|
||||
obj.addProperty("App::PropertyInteger", "Rows",
|
||||
"Draft",QT_TRANSLATE_NOOP("App::Property", _tip))
|
||||
_tip = QT_TRANSLATE_NOOP("App::Property", "Horizontal subdivisions of this rectangle")
|
||||
obj.addProperty("App::PropertyInteger", "Rows", "Draft", _tip)
|
||||
|
||||
_tip = "Vertical subdivisions of this rectangle"
|
||||
obj.addProperty("App::PropertyInteger", "Columns",
|
||||
"Draft",QT_TRANSLATE_NOOP("App::Property", _tip))
|
||||
_tip = QT_TRANSLATE_NOOP("App::Property", "Vertical subdivisions of this rectangle")
|
||||
obj.addProperty("App::PropertyInteger", "Columns", "Draft", _tip)
|
||||
|
||||
_tip = "The area of this object"
|
||||
obj.addProperty("App::PropertyArea", "Area",
|
||||
"Draft",QT_TRANSLATE_NOOP("App::Property", _tip))
|
||||
_tip = QT_TRANSLATE_NOOP("App::Property", "The area of this object")
|
||||
obj.addProperty("App::PropertyArea", "Area", "Draft", _tip)
|
||||
|
||||
obj.MakeFace = get_param("fillmode",True)
|
||||
obj.Length=1
|
||||
|
||||
Reference in New Issue
Block a user