Remove redundant includes.

This commit is contained in:
Roman Telezhynskyi 2022-11-21 18:49:41 +02:00
parent 2d6fa0fe9b
commit 1925300ff3
11 changed files with 13 additions and 23 deletions

View File

@ -34,7 +34,6 @@
#include <QString>
#include <QtGlobal>
#include "../ifc/ifcdef.h"
#include "vabstractcurve.h"
#include "vgeometrydef.h"

View File

@ -30,8 +30,6 @@
#define VABSTRACTARC_P_H
#include <QSharedData>
#include "vgeometrydef.h"
#include "../vmisc/vabstractapplication.h"
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
#include "../vmisc/diagnostic.h"
#endif // QT_VERSION < QT_VERSION_CHECK(5, 5, 0)

View File

@ -35,6 +35,7 @@
#include "../vmisc/def.h"
#include "../vmisc/vmath.h"
#include "../vmisc/compatibility.h"
#include "../vmisc/vabstractapplication.h"
#include "../ifc/ifcdef.h"
#include "vabstractcurve.h"
#include "varc_p.h"

View File

@ -30,12 +30,12 @@
#define VARC_P_H
#include <QSharedData>
#include "vgeometrydef.h"
#include "../vmisc/vabstractvalapplication.h"
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
#include "../vmisc/diagnostic.h"
#endif // QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
#include "../vmisc/defglobal.h"
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Weffc++")
QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor")
@ -74,7 +74,7 @@ VArcData::VArcData(qreal radius, const QString &formulaRadius)
//---------------------------------------------------------------------------------------------------------------------
VArcData::VArcData(qreal radius)
: radius(radius),
formulaRadius(QString().number(VAbstractValApplication::VApp()->fromPixel(radius)))
formulaRadius(QString().number(radius))
{}
//---------------------------------------------------------------------------------------------------------------------

View File

@ -33,11 +33,9 @@
#include <QLineF>
#include "vpointf.h"
#include "../vmisc/vabstractapplication.h"
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
#include "../vmisc/diagnostic.h"
#endif // QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
#include "../vmisc/vmath.h"
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Weffc++")

View File

@ -284,6 +284,7 @@ VEllipticalArc::VEllipticalArc(qreal length, const VPointF &center, qreal radius
{
CreateName();
FindF2(length);
SetFormulaLength(QString::number(length));
}
//---------------------------------------------------------------------------------------------------------------------
@ -698,7 +699,6 @@ void VEllipticalArc::FindF2(qreal length)
SetFormulaF2(QString::number(endAngle), endAngle);
lenBez = GetLength();
}
SetFormulaLength(QString::number(VAbstractValApplication::VApp()->fromPixel(lenBez)));
}
//---------------------------------------------------------------------------------------------------------------------

View File

@ -2,11 +2,9 @@
#define VELLIPTICALARC_P
#include <QSharedData>
#include "../vmisc/vabstractvalapplication.h"
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
#include "../vmisc/diagnostic.h"
#endif // QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
#include "vpointf.h"
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Weffc++")
@ -69,10 +67,10 @@ VEllipticalArcData::VEllipticalArcData(qreal radius1, qreal radius2, const QStri
VEllipticalArcData::VEllipticalArcData(qreal radius1, qreal radius2, qreal rotationAngle)
: radius1(radius1),
radius2(radius2),
formulaRadius1(QString().number(VAbstractValApplication::VApp()->fromPixel(radius1))),
formulaRadius2(QString().number(VAbstractValApplication::VApp()->fromPixel(radius2))),
formulaRadius1(QString().number(radius1)),
formulaRadius2(QString().number(radius2)),
rotationAngle(rotationAngle),
formulaRotationAngle(QString().number(VAbstractValApplication::VApp()->fromPixel(rotationAngle))),
formulaRotationAngle(QString().number(rotationAngle)),
m_transform()
{}

View File

@ -31,7 +31,6 @@
#include <QSharedData>
#include "vgeometrydef.h"
#include "../ifc/ifcdef.h"
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
#include "../vmisc/diagnostic.h"
#endif // QT_VERSION < QT_VERSION_CHECK(5, 5, 0)

View File

@ -30,7 +30,6 @@
#include <QSharedData>
#include "vgeometrydef.h"
#include "../ifc/ifcdef.h"
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
#include "../vmisc/diagnostic.h"
#endif // QT_VERSION < QT_VERSION_CHECK(5, 5, 0)

View File

@ -30,7 +30,6 @@
#define VPOINTF_P_H
#include <QSharedData>
#include "vgeometrydef.h"
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
#include "../vmisc/diagnostic.h"
#endif // QT_VERSION < QT_VERSION_CHECK(5, 5, 0)

View File

@ -31,10 +31,9 @@
#include <QSharedData>
#include <QLineF>
#include <QtMath>
#include "vpointf.h"
#include "../vmisc/vabstractvalapplication.h"
#include "../vmisc/vmath.h"
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Weffc++")
@ -140,12 +139,12 @@ VSplineData::VSplineData(VPointF p1, VPointF p4, qreal angle1, qreal angle2, qre
QLineF p1p2(p1.x(), p1.y(), p1.x() + L * kAsm1, p1.y());
p1p2.setAngle(angle1);
c1Length = p1p2.length();
c1LengthF = QString().number(VAbstractValApplication::VApp()->fromPixel(c1Length));
c1LengthF = QString().number(c1Length);
QLineF p4p3(p4.x(), p4.y(), p4.x() + L * kAsm2, p4.y());
p4p3.setAngle(angle2);
c2Length = p4p3.length();
c2LengthF = QString().number(VAbstractValApplication::VApp()->fromPixel(c2Length));
c2LengthF = QString().number(c2Length);
}
//---------------------------------------------------------------------------------------------------------------------
@ -168,7 +167,7 @@ VSplineData::VSplineData(VPointF p1, QPointF p2, QPointF p3, VPointF p4)
angle1F = QString().number(angle1);
c1Length = p1p2.length();
c1LengthF = QString().number(VAbstractValApplication::VApp()->fromPixel(c1Length));
c1LengthF = QString().number(c1Length);
QLineF p4p3(static_cast<QPointF>(p4), static_cast<QPointF>(p3));
@ -176,7 +175,7 @@ VSplineData::VSplineData(VPointF p1, QPointF p2, QPointF p3, VPointF p4)
angle2F = QString().number(angle2);
c2Length = p4p3.length();
c2LengthF = QString().number(VAbstractValApplication::VApp()->fromPixel(c2Length));
c2LengthF = QString().number(c2Length);
}
//---------------------------------------------------------------------------------------------------------------------