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:
@@ -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
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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;
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user