mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "Application.h"
|
||||
|
||||
#include <Standard_WarningsDisable.hxx>
|
||||
#include <QDir>
|
||||
#include <QLayout>
|
||||
#include <QComboBox>
|
||||
@@ -12,6 +13,7 @@
|
||||
#include <QApplication>
|
||||
#include <QWidget>
|
||||
#include <QStyleFactory>
|
||||
#include <Standard_WarningsRestore.hxx>
|
||||
|
||||
#include <AIS_Shape.hxx>
|
||||
#include <AIS_InteractiveObject.hxx>
|
||||
@@ -305,7 +307,7 @@ QString Translate::selectFileName( const int format, const bool import )
|
||||
if ( idx != -1 )
|
||||
{
|
||||
QString tail = selFilter.mid( idx + 3 );
|
||||
int idx = tail.indexOf( " " );
|
||||
idx = tail.indexOf( " " );
|
||||
if ( idx == -1 )
|
||||
idx = tail.indexOf( ")" );
|
||||
QString ext = tail.left( idx );
|
||||
|
Reference in New Issue
Block a user