Includes for Coverity Scan, again.

--HG--
branch : develop
This commit is contained in:
dismine 2014-06-17 12:50:11 +03:00
parent 7f18d2302e
commit c3355e37e4
45 changed files with 99 additions and 13 deletions

View File

@ -26,6 +26,9 @@ uic/
rcc/
man/
#Ignore Coverity Scan Build Tool
cov-int/
# Ignore file used QtCreator for user profile.
*.pro.user

View File

@ -31,6 +31,8 @@
#include "../widgets/vapplication.h"
#include "../geometry/varc.h"
#include "../geometry/vsplinepath.h"
#include <QLineF>
#include <QtAlgorithms>
quint32 VContainer::_id = 0;

View File

@ -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.

View File

@ -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);

View File

@ -37,6 +37,7 @@
#include <QFileDialog>
#include <QDir>
#include <QMessageBox>
#include <QCloseEvent>
//---------------------------------------------------------------------------------------------------------------------
/**

View File

@ -31,6 +31,7 @@
#include "../../xml/vindividualmeasurements.h"
#include <QFileDialog>
#include <QMessageBox>
#include <QPushButton>
#include "../../widgets/vapplication.h"
#include "../../container/vcontainer.h"

View File

@ -29,6 +29,7 @@
#include "dialogpatternproperties.h"
#include "ui_dialogpatternproperties.h"
#include <QSettings>
#include <QPushButton>
#include "../../xml/vpattern.h"
//---------------------------------------------------------------------------------------------------------------------

View File

@ -29,6 +29,7 @@
#include "dialogpatternxmledit.h"
#include "ui_dialogpatternxmledit.h"
#include <QInputDialog>
#include <QMessageBox>
const short int DialogPatternXmlEdit::ChangeTypeDelete=1;

View File

@ -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"

View File

@ -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();

View File

@ -30,6 +30,8 @@
#define PAGES_H
#include <QObject>
#include <QWidget>
#include <QFormLayout>
class QCheckBox;
class QSpinBox;

View File

@ -30,6 +30,7 @@
#include "ui_dialogarc.h"
#include <QPushButton>
#include <QTimer>
#include "../../geometry/vpointf.h"
#include "../../container/vcontainer.h"

View File

@ -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>
//---------------------------------------------------------------------------------------------------------------------
/**

View File

@ -32,6 +32,7 @@
#include <QDialog>
#include <QDialogButtonBox>
#include "../../widgets/vapplication.h"
#include <QPushButton>
class QDoubleSpinBox;
class QLabel;

View File

@ -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

View File

@ -26,12 +26,12 @@
**
*************************************************************************/
#ifndef VEXCEPTION_H
#define VEXCEPTION_H
#include <QException>
#include <QString>
#include <QCoreApplication>
class QWidget;

View File

@ -28,6 +28,7 @@
#include "vexceptionemptyparameter.h"
#include <QDomElement>
#include <QTextStream>
//---------------------------------------------------------------------------------------------------------------------
/**

View File

@ -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

View File

@ -31,6 +31,7 @@
#include "vgobject.h"
#include "vpointf.h"
#include <QCoreApplication>
class QPainterPath;

View File

@ -30,6 +30,7 @@
#define VDETAIL_H
#include "vnodedetail.h"
#include <QString>
#include <QVector>
class QString;

View File

@ -30,6 +30,8 @@
#define VGOBJECT_H
#include "../options.h"
#include <QString>
#include <QtGlobal>
enum class GOType : char { Point, Arc, Spline, SplinePath };

View File

@ -30,6 +30,7 @@
#define VNODEDETAIL_H
#include "../options.h"
#include <QMetaType>
enum class NodeDetail : char { Contour, Modeling };

View File

@ -28,6 +28,7 @@
#include "vspline.h"
#include <QDebug>
#include <QPainterPath>
#ifdef Q_OS_WIN32
# include <QtMath> // for M_PI on Windows

View File

@ -31,8 +31,9 @@
#include "vpointf.h"
#include "vgobject.h"
#include <QLineF>
#include <QPointF>
class QLineF;
class QPainterPath;
#define M_2PI 6.28318530717958647692528676655900576

View File

@ -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 };

View File

@ -28,6 +28,7 @@
#include "vsplinepoint.h"
#include <QDebug>
#include <QLineF>
//---------------------------------------------------------------------------------------------------------------------
/**

View File

@ -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

View File

@ -47,6 +47,8 @@
#include <QScrollBar>
#include <QFileDialog>
#include <QSourceLocation>
#include <QUndoStack>
#include <QAction>
//---------------------------------------------------------------------------------------------------------------------
/**

View File

@ -30,6 +30,7 @@
#define VTOOLPOINT_H
#include "vdrawtool.h"
#include <QGraphicsEllipseItem>
class VPointF;
class VGraphicsSimpleTextItem;

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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")

View File

@ -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;

View File

@ -27,6 +27,8 @@
*************************************************************************/
#include "vgraphicssimpletextitem.h"
#include <QFont>
#include <QBrush>
//---------------------------------------------------------------------------------------------------------------------
/**

View File

@ -27,6 +27,7 @@
*************************************************************************/
#include "vmaingraphicsscene.h"
#include <QGraphicsSceneMouseEvent>
//---------------------------------------------------------------------------------------------------------------------
/**

View File

@ -29,6 +29,7 @@
#include "vsimplesplinepath.h"
#include "../widgets/vapplication.h"
#include <QGraphicsSceneMouseEvent>
#include <QPen>
//---------------------------------------------------------------------------------------------------------------------
/**

View File

@ -29,7 +29,10 @@
#include "vtablegraphicsview.h"
#include <QDebug>
#include <QGraphicsItem>
#include <QGuiApplication>
#include <QWheelEvent>
#include <QScrollBar>
#include "../options.h"
//---------------------------------------------------------------------------------------------------------------------

View File

@ -27,6 +27,7 @@
*************************************************************************/
#include "vtranslation.h"
#include <QCoreApplication>
//---------------------------------------------------------------------------------------------------------------------
VTranslation VTranslation::translate(const QString &context, const QString &sourceText, const QString &disambiguation,

View File

@ -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");

View File

@ -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));

View File

@ -27,6 +27,7 @@
#endif /*Q_OS_WIN32*/
#include <QtGlobal>
#include <QtMath>
using namespace std;

View File

@ -21,7 +21,7 @@
******************************************************************************************************/
#include "qmuparserbase.h"
//#include <QTextStream>
#include <QtMath>
#ifdef Q_OS_WIN32
# include <QtMath> // for M_PI on Windows

View File

@ -31,6 +31,7 @@
#include <QDebug>
#include "qmuparsertoken.h"
#include <QtMath>
namespace qmu