Includes for Coverity Scan, again.
--HG-- branch : develop
This commit is contained in:
parent
7f18d2302e
commit
c3355e37e4
|
@ -26,6 +26,9 @@ uic/
|
|||
rcc/
|
||||
man/
|
||||
|
||||
#Ignore Coverity Scan Build Tool
|
||||
cov-int/
|
||||
|
||||
# Ignore file used QtCreator for user profile.
|
||||
*.pro.user
|
||||
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
#include "../widgets/vapplication.h"
|
||||
#include "../geometry/varc.h"
|
||||
#include "../geometry/vsplinepath.h"
|
||||
#include <QLineF>
|
||||
#include <QtAlgorithms>
|
||||
|
||||
quint32 VContainer::_id = 0;
|
||||
|
||||
|
|
|
@ -34,6 +34,8 @@
|
|||
#include "../geometry/vdetail.h"
|
||||
#include "../geometry/vgobject.h"
|
||||
#include "../exception/vexceptionbadid.h"
|
||||
#include <QCoreApplication>
|
||||
#include <QHash>
|
||||
|
||||
/**
|
||||
* @brief The VContainer class container of all variables.
|
||||
|
|
|
@ -27,10 +27,16 @@
|
|||
*************************************************************************/
|
||||
|
||||
#include "configdialog.h"
|
||||
#include <QListWidget>
|
||||
#include <QtWidgets>
|
||||
#include <QPushButton>
|
||||
#include <QHBoxLayout>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
ConfigDialog::ConfigDialog(QWidget *parent) :
|
||||
QDialog(parent), contentsWidget(nullptr), pagesWidget(nullptr), configurationPage(nullptr), patternPage(nullptr)
|
||||
QDialog(parent), contentsWidget(nullptr), pagesWidget(nullptr), configurationPage(nullptr), patternPage(nullptr),
|
||||
communityPage(nullptr)
|
||||
{
|
||||
contentsWidget = new QListWidget;
|
||||
contentsWidget->setViewMode(QListView::IconMode);
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#include <QFileDialog>
|
||||
#include <QDir>
|
||||
#include <QMessageBox>
|
||||
#include <QCloseEvent>
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#include "../../xml/vindividualmeasurements.h"
|
||||
#include <QFileDialog>
|
||||
#include <QMessageBox>
|
||||
#include <QPushButton>
|
||||
#include "../../widgets/vapplication.h"
|
||||
#include "../../container/vcontainer.h"
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include "dialogpatternproperties.h"
|
||||
#include "ui_dialogpatternproperties.h"
|
||||
#include <QSettings>
|
||||
#include <QPushButton>
|
||||
#include "../../xml/vpattern.h"
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include "dialogpatternxmledit.h"
|
||||
#include "ui_dialogpatternxmledit.h"
|
||||
|
||||
#include <QInputDialog>
|
||||
#include <QMessageBox>
|
||||
|
||||
const short int DialogPatternXmlEdit::ChangeTypeDelete=1;
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include "dialogstandardmeasurements.h"
|
||||
#include "ui_dialogstandardmeasurements.h"
|
||||
#include <QDir>
|
||||
#include <QPushButton>
|
||||
#include "../../xml/vstandardmeasurements.h"
|
||||
#include "../../widgets/vapplication.h"
|
||||
#include "../../container/vcontainer.h"
|
||||
|
|
|
@ -30,10 +30,22 @@
|
|||
#include "../../options.h"
|
||||
#include "../../widgets/vapplication.h"
|
||||
#include "../../widgets/vmaingraphicsview.h"
|
||||
#include <QDir>
|
||||
#include <QGroupBox>
|
||||
#include <QLabel>
|
||||
#include <QSettings>
|
||||
#include <QTimer>
|
||||
#include <QCheckBox>
|
||||
#include <QSpinBox>
|
||||
#include <QComboBox>
|
||||
#include <QMessageBox>
|
||||
#include <QCheckBox>
|
||||
#include <QIcon>
|
||||
#include <QLineEdit>
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
ConfigurationPage::ConfigurationPage(QWidget *parent):
|
||||
QWidget(parent), autoSaveCheck(nullptr), autoTime(nullptr), langCombo(nullptr), unitCombo(nullptr),
|
||||
ConfigurationPage::ConfigurationPage(QWidget *parent)
|
||||
: QWidget(parent), autoSaveCheck(nullptr), autoTime(nullptr), langCombo(nullptr), unitCombo(nullptr),
|
||||
osOptionCheck(nullptr), langChanged(false), unitChanged(false)
|
||||
{
|
||||
QGroupBox *saveGroup = SaveGroup();
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#define PAGES_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QWidget>
|
||||
#include <QFormLayout>
|
||||
|
||||
class QCheckBox;
|
||||
class QSpinBox;
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include "ui_dialogarc.h"
|
||||
|
||||
#include <QPushButton>
|
||||
#include <QTimer>
|
||||
|
||||
#include "../../geometry/vpointf.h"
|
||||
#include "../../container/vcontainer.h"
|
||||
|
|
|
@ -36,6 +36,20 @@
|
|||
#include "../../../libs/qmuparser/qmuparsererror.h"
|
||||
#include "../../widgets/vapplication.h"
|
||||
#include "../../xml/vdomdocument.h"
|
||||
#include <QTimer>
|
||||
#include <QCloseEvent>
|
||||
#include <QShowEvent>
|
||||
#include <QComboBox>
|
||||
#include <QListWidgetItem>
|
||||
#include <QLineEdit>
|
||||
#include <QTextCursor>
|
||||
#include <QPlainTextEdit>
|
||||
#include <QLabel>
|
||||
#include <QSettings>
|
||||
#include <QPushButton>
|
||||
#include <QDoubleSpinBox>
|
||||
#include <QListWidget>
|
||||
#include <QRadioButton>
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include <QDialog>
|
||||
#include <QDialogButtonBox>
|
||||
#include "../../widgets/vapplication.h"
|
||||
#include <QPushButton>
|
||||
|
||||
class QDoubleSpinBox;
|
||||
class QLabel;
|
||||
|
|
|
@ -27,12 +27,12 @@
|
|||
*************************************************************************/
|
||||
|
||||
#include "vexception.h"
|
||||
#include <QGridLayout>
|
||||
#include <QMessageBox>
|
||||
#include <QSpacerItem>
|
||||
#include <QApplication>
|
||||
#include "../options.h"
|
||||
|
||||
class QSpacerItem;
|
||||
class QGridLayout;
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
* @brief VException constructor exception
|
||||
|
|
|
@ -26,12 +26,12 @@
|
|||
**
|
||||
*************************************************************************/
|
||||
|
||||
|
||||
#ifndef VEXCEPTION_H
|
||||
#define VEXCEPTION_H
|
||||
|
||||
#include <QException>
|
||||
#include <QString>
|
||||
#include <QCoreApplication>
|
||||
|
||||
class QWidget;
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include "vexceptionemptyparameter.h"
|
||||
#include <QDomElement>
|
||||
#include <QTextStream>
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
|
||||
#include "varc.h"
|
||||
#include <QDebug>
|
||||
#include <QLineF>
|
||||
#include <QPainterPath>
|
||||
#include <QPointF>
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
# include <QtMath> // for M_PI on Windows
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
|
||||
#include "vgobject.h"
|
||||
#include "vpointf.h"
|
||||
#include <QCoreApplication>
|
||||
|
||||
class QPainterPath;
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#define VDETAIL_H
|
||||
|
||||
#include "vnodedetail.h"
|
||||
#include <QString>
|
||||
#include <QVector>
|
||||
|
||||
class QString;
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#define VGOBJECT_H
|
||||
|
||||
#include "../options.h"
|
||||
#include <QString>
|
||||
#include <QtGlobal>
|
||||
|
||||
enum class GOType : char { Point, Arc, Spline, SplinePath };
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#define VNODEDETAIL_H
|
||||
|
||||
#include "../options.h"
|
||||
#include <QMetaType>
|
||||
|
||||
enum class NodeDetail : char { Contour, Modeling };
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include "vspline.h"
|
||||
#include <QDebug>
|
||||
#include <QPainterPath>
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
# include <QtMath> // for M_PI on Windows
|
||||
|
|
|
@ -31,8 +31,9 @@
|
|||
|
||||
#include "vpointf.h"
|
||||
#include "vgobject.h"
|
||||
#include <QLineF>
|
||||
#include <QPointF>
|
||||
|
||||
class QLineF;
|
||||
class QPainterPath;
|
||||
|
||||
#define M_2PI 6.28318530717958647692528676655900576
|
||||
|
|
|
@ -32,6 +32,9 @@
|
|||
#include "vgobject.h"
|
||||
#include "vspline.h"
|
||||
#include "vsplinepoint.h"
|
||||
#include <QCoreApplication>
|
||||
#include <QVector>
|
||||
#include <QPainterPath>
|
||||
|
||||
enum class SplinePointPosition : char { FirstPoint, LastPoint };
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include "vsplinepoint.h"
|
||||
#include <QDebug>
|
||||
#include <QLineF>
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#define VSPLINEPOINT_H
|
||||
|
||||
#include "vpointf.h"
|
||||
#include <QMetaType>
|
||||
|
||||
/**
|
||||
* @brief The VSplinePoint class keep information about point in spline path. Each point have two angles and two
|
||||
|
|
|
@ -47,6 +47,8 @@
|
|||
#include <QScrollBar>
|
||||
#include <QFileDialog>
|
||||
#include <QSourceLocation>
|
||||
#include <QUndoStack>
|
||||
#include <QAction>
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#define VTOOLPOINT_H
|
||||
|
||||
#include "vdrawtool.h"
|
||||
#include <QGraphicsEllipseItem>
|
||||
|
||||
class VPointF;
|
||||
class VGraphicsSimpleTextItem;
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
|
||||
#include "../../widgets/vapplication.h"
|
||||
#include "../../geometry/varc.h"
|
||||
#include <QGraphicsSceneMouseEvent>
|
||||
#include <QPen>
|
||||
|
||||
const QString VNodeArc::TagName = QStringLiteral("arc");
|
||||
const QString VNodeArc::ToolType = QStringLiteral("modeling");
|
||||
|
|
|
@ -31,6 +31,9 @@
|
|||
#include "../../widgets/vapplication.h"
|
||||
#include "../../geometry/vpointf.h"
|
||||
#include "../../widgets/vgraphicssimpletextitem.h"
|
||||
#include <QPen>
|
||||
#include <QBrush>
|
||||
#include <QGraphicsSceneMouseEvent>
|
||||
|
||||
const QString VNodePoint::TagName = QStringLiteral("point");
|
||||
const QString VNodePoint::ToolType = QStringLiteral("modeling");
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
|
||||
#include "../../widgets/vapplication.h"
|
||||
#include "../../geometry/vspline.h"
|
||||
#include <QGraphicsSceneMouseEvent>
|
||||
#include <QPen>
|
||||
|
||||
const QString VNodeSpline::TagName = QStringLiteral("spline");
|
||||
const QString VNodeSpline::ToolType = QStringLiteral("modelingSpline");
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
|
||||
#include "../../widgets/vapplication.h"
|
||||
#include "../../geometry/vsplinepath.h"
|
||||
#include <QGraphicsSceneMouseEvent>
|
||||
#include <QPen>
|
||||
|
||||
const QString VNodeSplinePath::TagName = QStringLiteral("spline");
|
||||
const QString VNodeSplinePath::ToolType = QStringLiteral("modelingPath");
|
||||
|
|
|
@ -715,7 +715,7 @@ QVector<VDetail> VToolUnionDetails::GetDetailFromFile(VPattern *doc, const QDomE
|
|||
quint32 id = doc->GetParametrUInt(element, VToolDetail::AttrIdObject, "0");
|
||||
qreal mx = qApp->toPixel(doc->GetParametrDouble(element, VAbstractTool::AttrMx, "0.0"));
|
||||
qreal my = qApp->toPixel(doc->GetParametrDouble(element, VAbstractTool::AttrMy, "0.0"));
|
||||
Tool tool;
|
||||
Tool tool = Tool::NodePoint;
|
||||
NodeDetail nodeType = NodeDetail::Contour;
|
||||
QString t = doc->GetParametrString(element, "type", "NodePoint");
|
||||
if (t == "NodePoint")
|
||||
|
|
|
@ -40,9 +40,7 @@
|
|||
#include <QSettings>
|
||||
#include <QUndoStack>
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
# include <QtMath> // for M_PI on Windows
|
||||
#endif /*Q_OS_WIN32*/
|
||||
#include <QtMath>
|
||||
|
||||
const qreal VApplication::PrintDPI = 96.0;
|
||||
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
*************************************************************************/
|
||||
|
||||
#include "vgraphicssimpletextitem.h"
|
||||
#include <QFont>
|
||||
#include <QBrush>
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
*************************************************************************/
|
||||
|
||||
#include "vmaingraphicsscene.h"
|
||||
#include <QGraphicsSceneMouseEvent>
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include "vsimplesplinepath.h"
|
||||
#include "../widgets/vapplication.h"
|
||||
#include <QGraphicsSceneMouseEvent>
|
||||
#include <QPen>
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
|
|
|
@ -29,7 +29,10 @@
|
|||
#include "vtablegraphicsview.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QGraphicsItem>
|
||||
#include <QGuiApplication>
|
||||
#include <QWheelEvent>
|
||||
#include <QScrollBar>
|
||||
#include "../options.h"
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
*************************************************************************/
|
||||
|
||||
#include "vtranslation.h"
|
||||
#include <QCoreApplication>
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VTranslation VTranslation::translate(const QString &context, const QString &sourceText, const QString &disambiguation,
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include "vindividualmeasurements.h"
|
||||
#include "../widgets/vapplication.h"
|
||||
#include <QDate>
|
||||
|
||||
const QString VIndividualMeasurements::AttrValue = QStringLiteral("value");
|
||||
const QString VIndividualMeasurements::TagFamily_name = QStringLiteral("family-name");
|
||||
|
|
|
@ -895,6 +895,7 @@ void VPattern::ParseDetailElement(VMainGraphicsScene *sceneDetail, const QDomEle
|
|||
break;
|
||||
default:
|
||||
qDebug()<<"Wrong node type."<<Q_FUNC_INFO;
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
detail.append(VNodeDetail(id, tool, nodeType, mx, my));
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#endif /*Q_OS_WIN32*/
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QtMath>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
******************************************************************************************************/
|
||||
|
||||
#include "qmuparserbase.h"
|
||||
//#include <QTextStream>
|
||||
#include <QtMath>
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
# include <QtMath> // for M_PI on Windows
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
|
||||
#include <QDebug>
|
||||
#include "qmuparsertoken.h"
|
||||
#include <QtMath>
|
||||
|
||||
|
||||
namespace qmu
|
||||
|
|
Loading…
Reference in New Issue
Block a user