TechDraw: remove trailing whitespace
This commit is contained in:
@@ -650,7 +650,7 @@ std::pair<Base::Vector3d, Base::Vector3d> DrawGuiUtil::getProjDirFromFace(App::D
|
||||
| Part::ShapeOption::ResolveLink
|
||||
| Part::ShapeOption::Transform,
|
||||
faceName.c_str());
|
||||
|
||||
|
||||
if (ts.IsNull() || ts.ShapeType() != TopAbs_FACE) {
|
||||
Base::Console().warning("getProjDirFromFace(%s) is not a Face\n", faceName.c_str());
|
||||
return dirs;
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
void setPen(QPen pen) { m_pen = pen; }
|
||||
QPen getPen() { return m_pen; }
|
||||
void setParent(QGraphicsItem* parent) { m_parent = parent; }
|
||||
|
||||
|
||||
void lineSetToFillItems(TechDraw::LineSet& ls);
|
||||
|
||||
protected:
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace {
|
||||
// No attribute and no parent nodes left? Defaulting:
|
||||
return QFont(QStringLiteral("sans"));
|
||||
}
|
||||
|
||||
|
||||
std::vector<QDomElement> getFCElements(QDomDocument& doc) {
|
||||
QDomNodeList textElements = doc.elementsByTagName(QStringLiteral("text"));
|
||||
std::vector<QDomElement> filteredTextElements;
|
||||
@@ -247,7 +247,7 @@ std::vector<TemplateTextField*> QGISVGTemplate::getTextFields()
|
||||
void QGISVGTemplate::clearClickHandles()
|
||||
{
|
||||
prepareGeometryChange();
|
||||
std::vector<TemplateTextField*> textFields = getTextFields();
|
||||
std::vector<TemplateTextField*> textFields = getTextFields();
|
||||
for (auto& textField : textFields) {
|
||||
textField->hide();
|
||||
scene()->removeItem(textField);
|
||||
@@ -284,7 +284,7 @@ void QGISVGTemplate::createClickHandles()
|
||||
// Get elements bounding box of text
|
||||
QString id = textElement.attribute(QStringLiteral("id"));
|
||||
QRectF textRect = m_svgRender->boundsOnElement(id);
|
||||
|
||||
|
||||
// Get tight bounding box of text
|
||||
QDomElement tspan = textElement.firstChildElement();
|
||||
QFont font = getFont(tspan);
|
||||
@@ -300,7 +300,7 @@ void QGISVGTemplate::createClickHandles()
|
||||
// and both be in style attribute and native attribute
|
||||
font.setPointSizeF(1.5);
|
||||
fm = QFontMetricsF(font);
|
||||
|
||||
|
||||
if (tightTextRect.height() < fm.capHeight()) {
|
||||
tightTextRect.setTop(tightTextRect.bottom() - fm.capHeight());
|
||||
}
|
||||
|
||||
@@ -200,7 +200,7 @@ QVariant QGIView::itemChange(GraphicsItemChange change, const QVariant &value)
|
||||
bool thisViewIsSelected = value.toBool();
|
||||
bool anyChildSelected = false;
|
||||
if (!thisViewIsSelected) { // Only check children if this view is becoming unselected
|
||||
anyChildSelected =
|
||||
anyChildSelected =
|
||||
std::ranges::any_of(childItems(), [](QGraphicsItem* child) {
|
||||
return child->isSelected();
|
||||
});
|
||||
@@ -518,7 +518,7 @@ void QGIView::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
|
||||
{
|
||||
QGraphicsItemGroup::hoverEnterEvent(event);
|
||||
|
||||
m_isHovered = true;
|
||||
m_isHovered = true;
|
||||
|
||||
if (isSelected()) {
|
||||
m_colCurrent = getSelectColor();
|
||||
@@ -528,11 +528,11 @@ void QGIView::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
|
||||
|
||||
m_border->show();
|
||||
m_label->show();
|
||||
|
||||
|
||||
m_lock->setVisible(getViewObject()->isLocked() && getViewObject()->showLock());
|
||||
|
||||
drawBorder();
|
||||
update();
|
||||
drawBorder();
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
@@ -540,7 +540,7 @@ void QGIView::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
|
||||
{
|
||||
QGraphicsItemGroup::hoverLeaveEvent(event);
|
||||
|
||||
m_isHovered = false;
|
||||
m_isHovered = false;
|
||||
|
||||
if (isSelected()) {
|
||||
m_colCurrent = getSelectColor();
|
||||
@@ -551,11 +551,11 @@ void QGIView::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
|
||||
m_colCurrent = PreferencesGui::getAccessibleQColor(PreferencesGui::normalQColor());
|
||||
m_border->hide();
|
||||
m_label->hide();
|
||||
m_lock->hide();
|
||||
m_lock->hide();
|
||||
}
|
||||
|
||||
drawBorder();
|
||||
update();
|
||||
drawBorder();
|
||||
update();
|
||||
}
|
||||
|
||||
//sets position in /Gui(graphics), not /App
|
||||
@@ -798,7 +798,7 @@ QRectF QGIView::customChildrenBoundingRect() const
|
||||
if (!child->isVisible()) {
|
||||
continue;
|
||||
}
|
||||
if (
|
||||
if (
|
||||
child->type() != UserType::QGIRichAnno &&
|
||||
child->type() != UserType::QGEPath &&
|
||||
child->type() != UserType::QGMText &&
|
||||
|
||||
@@ -830,7 +830,7 @@ void QGIViewPart::drawComplexSectionLine(TechDraw::DrawViewSection* viewSection,
|
||||
|
||||
std::pair<Base::Vector3d, Base::Vector3d> dirsDCS = dcs->sectionLineArrowDirsMapped();
|
||||
sectionLine->setArrowDirections(dirsDCS.first, dirsDCS.second);
|
||||
|
||||
|
||||
//set the general parameters
|
||||
sectionLine->setPos(0.0, 0.0);
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ class CommandPositionSectionView:
|
||||
Parameters:
|
||||
p1, p2 : vertices of the hypotenuse
|
||||
dir : direction vector of one leg (kathete)
|
||||
|
||||
|
||||
Returns:
|
||||
p3 : the third vertex completing the right triangle
|
||||
'''
|
||||
|
||||
@@ -94,7 +94,7 @@ class TaskHoleShaftFit:
|
||||
self.form.rbHoleBase.clicked.connect(partial(self.on_HoleShaftChanged, True))
|
||||
self.form.rbShaftBase.clicked.connect(partial(self.on_HoleShaftChanged, False))
|
||||
self.form.cbField.currentIndexChanged.connect(self.on_FieldChanged)
|
||||
|
||||
|
||||
App.setActiveTransaction("Add hole or shaft fit")
|
||||
|
||||
def setHoleFields(self):
|
||||
|
||||
Reference in New Issue
Block a user