// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-#include <TInspector_Communicator.hxx>
+#include <inspector/TInspector_Communicator.hxx>
#include <OSD_Environment.hxx>
#include <TCollection_AsciiString.hxx>
-#include <TInspector_Window.hxx>
+#include <inspector/TInspector_Window.hxx>
+#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QDir>
#include <QMainWindow>
#include <QWidget>
+#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor
static int argc = 1;
static char* argv[] = { (char*)"", 0 };
#if QT_VERSION > 0x050000
- OSD_Environment anEnvironment ("QTDIR");
- TCollection_AsciiString aPlugindsDirName = anEnvironment.Value();
- aPlugindsDirName += "/plugins";
- QApplication::addLibraryPath (aPlugindsDirName.ToCString());
+ TCollection_AsciiString aPlugindsDirName = OSD_Environment ("QTDIR").Value();
+ if (!aPlugindsDirName.IsEmpty())
+ QApplication::addLibraryPath (QString (aPlugindsDirName.ToCString()) + "/plugins");
#endif
new QApplication (argc, argv);
}
myWindow = new TInspector_Window();
- QObject::connect (qApp, SIGNAL (lastWindowClosed()), myWindow, SLOT (OnLastApplicationWindowClosed()));
}
// =======================================================================