Coverity scan missing includes.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-10-18 22:30:51 +03:00
parent 7a14bf255b
commit 65d2213ef9
22 changed files with 39 additions and 0 deletions

View File

@ -34,6 +34,8 @@
#include <QDate>
#include <QDesktopServices>
#include <QMessageBox>
#include <QUrl>
#include <QtDebug>
//---------------------------------------------------------------------------------------------------------------------
DialogAboutTape::DialogAboutTape(QWidget *parent)

View File

@ -30,6 +30,7 @@
#include "mapplication.h"
#include <QMessageBox> // For QT_REQUIRE_VERSION
#include <QTimer>
// Lock producing random attribute order in XML
// https://stackoverflow.com/questions/27378143/qt-5-produce-random-attribute-order-in-xml

View File

@ -49,6 +49,7 @@
#include <iostream>
#include <QGridLayout>
#include <QSpacerItem>
#include <QThread>
Q_LOGGING_CATEGORY(mApp, "m.application")

View File

@ -50,6 +50,7 @@
#include <QThread>
#include <QDateTime>
#include <QtXmlPatterns>
#include <QIcon>
Q_LOGGING_CATEGORY(vApp, "v.application")

View File

@ -32,6 +32,7 @@
#include <QDate>
#include <QDesktopServices>
#include <QMessageBox>
#include <QtDebug>
#include "../options.h"
#include "../core/vapplication.h"

View File

@ -33,6 +33,8 @@
#include <QMessageBox>
#include <QPushButton>
#include <QMovie>
#include <QtDebug>
//---------------------------------------------------------------------------------------------------------------------
DialogLayoutProgress::DialogLayoutProgress(int count, QWidget *parent)

View File

@ -29,6 +29,7 @@
#include "mainwindow.h"
#include "core/vapplication.h"
#include <QMessageBox> // For QT_REQUIRE_VERSION
#include <QTimer>
// Lock producing random attribute order in XML
// https://stackoverflow.com/questions/27378143/qt-5-produce-random-attribute-order-in-xml

View File

@ -32,6 +32,7 @@
#include <QFile>
#include <QFileInfo>
#include <QDir>
//---------------------------------------------------------------------------------------------------------------------
VAbstractConverter::VAbstractConverter(const QString &fileName)
@ -174,6 +175,7 @@ void VAbstractConverter::Replace(QString &formula, const QString &newName, int p
bias = token.length() - newName.length();
}
//---------------------------------------------------------------------------------------------------------------------
void VAbstractConverter::CorrectionsPositions(int position, int bias, QMap<int, QString> &tokens) const
{
if (bias == 0)

View File

@ -21,6 +21,8 @@
#include "qmuformulabase.h"
#include <QLocale>
namespace qmu
{

View File

@ -29,6 +29,8 @@
#ifndef DXFDEF_H
#define DXFDEF_H
#include <QtGlobal>
enum class VarMeasurement : unsigned char { English=0, Metric=1 };
//Default drawing units for AutoCAD DesignCenter blocks:

View File

@ -33,6 +33,8 @@
#include "../vpatterndb/calculator.h"
#include "../qmuparser/qmutokenparser.h"
#include <QDate>
const QString VMeasurements::TagVST = QStringLiteral("vst");
const QString VMeasurements::TagVIT = QStringLiteral("vit");
const QString VMeasurements::TagBodyMeasurements = QStringLiteral("body-measurements");

View File

@ -30,6 +30,9 @@
#include "../vmisc/def.h"
#include <QLibraryInfo>
#include <QLoggingCategory>
#include <QTranslator>
#include <QtDebug>
//---------------------------------------------------------------------------------------------------------------------
VAbstractApplication::VAbstractApplication(int &argc, char **argv)

View File

@ -29,6 +29,9 @@
#include "vmeasurement.h"
#include "vmeasurement_p.h"
#include <QMap>
#include <QtDebug>
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief VMeasurement create measurement for standard table

View File

@ -32,6 +32,7 @@
#include "../vgeometry/vpointf.h"
#include <QDebug>
#include <QPainterPath>
#include <QString>
//---------------------------------------------------------------------------------------------------------------------

View File

@ -33,6 +33,9 @@
#include "../qmuparser/qmutokenparser.h"
#include "../ifc/ifcdef.h"
#include <QLocale>
#include <QtDebug>
using namespace qmu;
//---------------------------------------------------------------------------------------------------------------------

View File

@ -36,6 +36,8 @@
#include "../../../vwidgets/vmaingraphicsscene.h"
#include "../support/dialogeditwrongformula.h"
#include <QTimer>
//---------------------------------------------------------------------------------------------------------------------
DialogPointFromCircleAndTangent::DialogPointFromCircleAndTangent(const VContainer *data, const quint32 &toolId,
QWidget *parent)

View File

@ -36,6 +36,8 @@
#include "../../../vwidgets/vmaingraphicsscene.h"
#include "../support/dialogeditwrongformula.h"
#include <QTimer>
//---------------------------------------------------------------------------------------------------------------------
DialogPointOfIntersectionCircles::DialogPointOfIntersectionCircles(const VContainer *data, const quint32 &toolId,
QWidget *parent)

View File

@ -31,6 +31,8 @@
#include "../vgeometry/vpointf.h"
#include "../../../../undocommands/movedoublelabel.h"
#include <QKeyEvent>
//---------------------------------------------------------------------------------------------------------------------
VToolDoublePoint::VToolDoublePoint(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 p1id, quint32 p2id,
QGraphicsItem *parent)

View File

@ -30,6 +30,8 @@
#define VABSTRACTSIMPLE_H
#include <QObject>
#include <QPen>
#include <QColor>
#include "../vmisc/def.h"
class VAbstractSimple : public QObject

View File

@ -34,6 +34,7 @@
#include <QGraphicsSceneMouseEvent>
#include <QStyleOptionGraphicsItem>
#include <QPen>
//---------------------------------------------------------------------------------------------------------------------
VSimplePoint::VSimplePoint(quint32 id, const QColor &currentColor, Unit patternUnit, qreal *factor, QObject *parent)

View File

@ -31,6 +31,8 @@
#include "abstracttest.h"
#include <QPointer>
class QTranslator;
class VTranslateMeasurements;

View File

@ -33,6 +33,7 @@
#include "../qmuparser/qmuparsererror.h"
#include <QTranslator>
#include <QPointer>
class TST_QmuParserErrorMsg : public AbstractTest
{