Skip to content

Commit

Permalink
+ fixes #282, + fixes #1028
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Dec 6, 2013
1 parent 01d6907 commit c771c2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Gui/View3DInventor.cpp
Expand Up @@ -53,6 +53,7 @@
# include <Inventor/events/SoEvent.h>
# include <Inventor/fields/SoSFString.h>
# include <Inventor/fields/SoSFColor.h>
# include <Inventor/Qt/SoQtBasic.h>
#endif
# include <QStackedWidget>

Expand Down Expand Up @@ -113,12 +114,17 @@ View3DInventor::View3DInventor(Gui::Document* pcDocument, QWidget* parent, Qt::W

// create the inventor widget and set the defaults
#if !defined (NO_USE_QT_MDI_AREA)
#if SOQT_MAJOR_VERSION > 1 || (SOQT_MAJOR_VERSION == 1 && SOQT_MINOR_VERSION >= 5)
_viewer = new View3DInventorViewer(this);
#else
_viewer = new View3DInventorViewer(0);
#endif
_viewer->setDocument(this->_pcDocument);
stack->addWidget(_viewer->getWidget());
setCentralWidget(stack);
#else
_viewer = new View3DInventorViewer(this);
_viewer->setDocument(this->_pcDocument);
#endif
// apply the user settings
OnChange(*hGrp,"EyeDistance");
Expand Down

0 comments on commit c771c2e

Please sign in to comment.