0029674: Improvements in Inspector tool
[occt.git] / tools / TInspector / TInspector_Communicator.cxx
index 025163e..8ec0c8c 100644 (file)
@@ -37,9 +37,10 @@ TInspector_Communicator::TInspector_Communicator()
     static int argc = 1;
     static char* argv[] = { (char*)"", 0 };
 #if QT_VERSION > 0x050000
-  TCollection_AsciiString aPlugindsDirName = OSD_Environment ("QTDIR").Value();
-  if (!aPlugindsDirName.IsEmpty())
-    QApplication::addLibraryPath (QString (aPlugindsDirName.ToCString()) + "/plugins");
+  OSD_Environment anEnvironment ("QTDIR");
+  TCollection_AsciiString aPlugindsDirName = anEnvironment.Value();
+  aPlugindsDirName += "/plugins";
+  QApplication::addLibraryPath (aPlugindsDirName.ToCString());
 #endif
     new QApplication (argc, argv);
   }
@@ -58,3 +59,12 @@ void TInspector_Communicator::SetVisible (const bool theVisible)
   QApplication::processEvents();
 #endif
 }
+
+// =======================================================================
+// function : Move
+// purpose :
+// =======================================================================
+void TInspector_Communicator::Move (const int theXPosition, const int theYPosition)
+{
+  myWindow->GetMainWindow()->move (theXPosition, theYPosition);
+}