1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0029310: Coding - multiple compiler warnings in Inspectors

1. Added specific header files to disable and restore compiler warnings: Standard_WarningsDisable.hxx, Standard_WarningsRestore.hxx.
   (Currently only MSVC compiler is handled.)
2. Inspector: compiler warnings are disabled for all includes of Qt headers.
3. Inspector: minor code correction to avoid warning due to use of floating point values in integer calculations.
This commit is contained in:
nds
2018-03-04 19:10:56 +03:00
committed by bugmaster
parent 50c4757387
commit 130eb11405
159 changed files with 396 additions and 123 deletions

View File

@@ -14,10 +14,11 @@
// commercial license or contractual agreement.
#include <inspector/TreeModel_ItemBase.hxx>
#include <inspector/TreeModel_ItemRole.hxx>
#include <Standard_WarningsDisable.hxx>
#include <QStringList>
#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor

View File

@@ -20,9 +20,7 @@
#include <Standard_Macro.hxx>
#include <inspector/TreeModel_ItemRole.hxx>
#ifdef _MSC_VER
#pragma warning(disable : 4127) // conditional expression is constant
#endif
#include <Standard_WarningsDisable.hxx>
#include <QExplicitlySharedDataPointer>
#include <QHash>
#include <QMap>
@@ -31,6 +29,7 @@
#include <QPair>
#include <QSharedData>
#include <QVariant>
#include <Standard_WarningsRestore.hxx>
class TreeModel_ItemBase;

View File

@@ -16,7 +16,9 @@
#ifndef TreeModel_ItemRole_H
#define TreeModel_ItemRole_H
#include <Standard_WarningsDisable.hxx>
#include <Qt>
#include <Standard_WarningsRestore.hxx>
//! Sets custom item role of Tree view wmodel
enum TreeModel_ItemRole

View File

@@ -15,12 +15,14 @@
#include <inspector/TreeModel_MessageDialog.hxx>
#include <Standard_WarningsDisable.hxx>
#include <QCheckBox>
#include <QCursor>
#include <QGridLayout>
#include <QLabel>
#include <QPushButton>
#include <QWidget>
#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor

View File

@@ -19,14 +19,13 @@
#include <Standard.hxx>
#include <Standard_Macro.hxx>
#ifdef _MSC_VER
#pragma warning(disable : 4127) // conditional expression is constant
#endif
#include <Standard_WarningsDisable.hxx>
#include <QCheckBox>
#include <QDialog>
#include <QLabel>
#include <QPushButton>
#include <QString>
#include <Standard_WarningsRestore.hxx>
class DFBrowser_Module;
class QWidget;

View File

@@ -19,10 +19,12 @@
#include <Standard.hxx>
#include <inspector/TreeModel_ItemBase.hxx>
#include <Standard_WarningsDisable.hxx>
#include <QAbstractItemModel>
#include <QExplicitlySharedDataPointer>
#include <QModelIndex>
#include <QVariant>
#include <Standard_WarningsRestore.hxx>
//! \class TreeModel_ModelBase
//! \brief Implementation of the tree item based model of QAbstractItemModel.