mirror of
https://github.com/OpenFOAM/ThirdParty-6.git
synced 2025-12-08 06:57:43 +00:00
ParaView-5.0.1: Added the source-tree to ThirdParty-dev and patched as described in the README file
Resolves bug-report http://bugs.openfoam.org/view.php?id=2098
This commit is contained in:
37
ParaView-5.0.1/VTK/Examples/GUI/Qt/SimpleView/main.cxx
Normal file
37
ParaView-5.0.1/VTK/Examples/GUI/Qt/SimpleView/main.cxx
Normal file
@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright 2007 Sandia Corporation.
|
||||
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
|
||||
* license for use of this work by or on behalf of the
|
||||
* U.S. Government. Redistribution and use in source and binary forms, with
|
||||
* or without modification, are permitted provided that this Notice and any
|
||||
* statement of authorship are reproduced on all copies.
|
||||
*/
|
||||
// QT includes
|
||||
#include <QApplication>
|
||||
#if QT_VERSION < 0x050000
|
||||
#include <QCleanlooksStyle>
|
||||
#endif
|
||||
|
||||
#include "SimpleView.h"
|
||||
|
||||
extern int qInitResources_icons();
|
||||
|
||||
int main( int argc, char** argv )
|
||||
{
|
||||
|
||||
// QT Stuff
|
||||
QApplication app( argc, argv );
|
||||
|
||||
#if QT_VERSION >= 0x050000
|
||||
QApplication::setStyle("fusion");
|
||||
#else
|
||||
QApplication::setStyle(new QCleanlooksStyle);
|
||||
#endif
|
||||
|
||||
qInitResources_icons();
|
||||
|
||||
SimpleView mySimpleView;
|
||||
mySimpleView.show();
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
Reference in New Issue
Block a user