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

0028934: Coding - Eliminate compiler warnings in OCCT samples

- covering Qt warnings for compilation under MSVC 2013 and greater
- avoid warning about 'M_PI'(and others) redefinition warning of math.h: includes of QtWidgets should follow after other includes.
This commit is contained in:
nds
2018-04-04 06:25:02 +03:00
committed by bugmaster
parent 41bf7e0b3c
commit 55a40de890
36 changed files with 103 additions and 32 deletions

View File

@@ -3,9 +3,11 @@
#include <OSD_Environment.hxx>
#include <Standard_WarningsDisable.hxx>
#include <QFileDialog>
#include <QStatusBar>
#include <QMdiSubWindow>
#include <Standard_WarningsRestore.hxx>
ApplicationTut::ApplicationTut()
: ApplicationCommonWindow( )

View File

@@ -1,8 +1,10 @@
#include "DocumentTut.h"
#include <Standard_WarningsDisable.hxx>
#include <QFileDialog>
#include <QMessageBox>
#include <QApplication>
#include <Standard_WarningsRestore.hxx>
#include <TopoDS_Shape.hxx>
#include <AIS_Shape.hxx>

View File

@@ -2,8 +2,10 @@
#include <OSD_Environment.hxx>
#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QTranslator>
#include <Standard_WarningsRestore.hxx>
int main ( int argc, char* argv[] )
{