mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-18 08:09:58 +01:00
Fix various typos in source documentation and comments (cont.)
Found via `codespell`
This commit is contained in:
committed by
Laurent Trinques
parent
a76e5446aa
commit
1994235bc5
@@ -29,7 +29,7 @@ ElementFactory* ElementFactory::factory_ = nullptr;
|
||||
/**
|
||||
@brief ElementFactory::createElement
|
||||
@param location create element at this location
|
||||
@param qgi parent item for this elemnt
|
||||
@param qgi parent item for this element
|
||||
@param state state of the creation
|
||||
@return the element or 0
|
||||
*/
|
||||
|
||||
@@ -153,7 +153,7 @@ bool ElementPictureFactory::build(const ElementsLocation &location,
|
||||
{
|
||||
QDomElement dom = location.xml();
|
||||
|
||||
//Check if the curent version can read the xml description
|
||||
//Check if the current version can read the xml description
|
||||
if (dom.hasAttribute("version"))
|
||||
{
|
||||
bool conv_ok;
|
||||
@@ -292,7 +292,7 @@ void ElementPictureFactory::parseLine(const QDomElement &dom, QPainter &painter,
|
||||
qreal line_length(line.length());
|
||||
qreal pen_width = painter.pen().widthF();
|
||||
|
||||
//Check if we must to draw extremity
|
||||
//Check if we must draw extremity
|
||||
bool draw_1st_end, draw_2nd_end;
|
||||
qreal reduced_line_length = line_length - (length1 * PartLine::requiredLengthForEndType(first_end));
|
||||
draw_1st_end = first_end && reduced_line_length >= 0;
|
||||
@@ -322,7 +322,7 @@ void ElementPictureFactory::parseLine(const QDomElement &dom, QPainter &painter,
|
||||
start_point = four_points1[0];
|
||||
}
|
||||
|
||||
//Adjust the begining according to the width of the pen
|
||||
//Adjust the beginning according to the width of the pen
|
||||
if (pen_width && (first_end == Qet::Simple || first_end == Qet::Circle)) {
|
||||
start_point = QLineF(start_point, point2).pointAt(pen_width / 2.0 / line_length);
|
||||
}
|
||||
@@ -511,7 +511,7 @@ void ElementPictureFactory::parseText(const QDomElement &dom, QPainter &painter,
|
||||
|
||||
QColor text_color(dom.attribute("color", "#000000"));
|
||||
|
||||
//Instanciate a QTextDocument (like the QGraphicsTextItem class)
|
||||
//Instantiate a QTextDocument (like the QGraphicsTextItem class)
|
||||
//for generate the graphics rendering of the text
|
||||
QTextDocument text_document;
|
||||
text_document.setDefaultFont(font_);
|
||||
|
||||
@@ -28,8 +28,8 @@ class AddTableDialog;
|
||||
|
||||
/**
|
||||
@brief The AddTableDialog class
|
||||
Provide a dialog used to edit the properties of table befor adding to a diagram.
|
||||
The main difference betwen this dialog and the widget used to edit the properties of table
|
||||
Provide a dialog used to edit the properties of table before adding to a diagram.
|
||||
The main difference between this dialog and the widget used to edit the properties of table
|
||||
is that the dialog have two extra check box.
|
||||
One for adjust the size of the table to diagram
|
||||
Second for add new tables on new folios if the table can't fit into diagram
|
||||
|
||||
Reference in New Issue
Block a user