mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
typos, whitespace and brackets
This commit is contained in:
@@ -58,9 +58,10 @@ void QetGraphicsTableItem::adjustTableToFolio(
|
|||||||
|
|
||||||
auto size_ = table->size();
|
auto size_ = table->size();
|
||||||
size_.setWidth(int(drawable_rect.width() - (margins.left() + margins.right())));
|
size_.setWidth(int(drawable_rect.width() - (margins.left() + margins.right())));
|
||||||
//Size must be a multiple of 10, because the table adjust itself by step of 10.
|
//Size must be a multiple of 10, because the table adjusts itself by step of 10.
|
||||||
while (size_.width()%10) {
|
while (size_.width()%10) {
|
||||||
--size_.rwidth(); }
|
--size_.rwidth();
|
||||||
|
}
|
||||||
table->setSize(size_);
|
table->setSize(size_);
|
||||||
|
|
||||||
//Calculate the maximum row to display to fit the nomenclature into diagram
|
//Calculate the maximum row to display to fit the nomenclature into diagram
|
||||||
|
|||||||
@@ -805,13 +805,13 @@ bool Element::fromXml(QDomElement &e,
|
|||||||
// orientation
|
// orientation
|
||||||
bool conv_ok;
|
bool conv_ok;
|
||||||
int read_ori = e.attribute(QStringLiteral("orientation")).toInt(&conv_ok);
|
int read_ori = e.attribute(QStringLiteral("orientation")).toInt(&conv_ok);
|
||||||
if (!conv_ok || read_ori < 0 || read_ori > 3) {
|
if (!(conv_ok) || (read_ori < 0) || (read_ori > 3)) {
|
||||||
read_ori = 0;
|
read_ori = 0;
|
||||||
}
|
}
|
||||||
setRotation(90*read_ori);
|
setRotation(90*read_ori);
|
||||||
|
|
||||||
//Before loading the dynamic text field,
|
//Before loading the dynamic text field,
|
||||||
//we remove the dynamic text field created from the description of this element, to avoid doublons.
|
//we remove the dynamic text field created from the description of this element, to avoid doubles.
|
||||||
for(DynamicElementTextItem *deti : m_dynamic_text_list)
|
for(DynamicElementTextItem *deti : m_dynamic_text_list)
|
||||||
delete deti;
|
delete deti;
|
||||||
m_dynamic_text_list.clear();
|
m_dynamic_text_list.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user