]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
correction of the test window size on Linux
authorasl <asl@opencascade.com>
Mon, 19 Oct 2015 06:17:51 +0000 (09:17 +0300)
committerasl <asl@opencascade.com>
Mon, 19 Oct 2015 06:17:51 +0000 (09:17 +0300)
src/HYDRO_tests/test_HYDROData_Main.cxx

index fb731922dc38b5c1e851dc1c94a02184fc4dbed9..507c6b55fb852d2b429bbedeb86db24e8ccbf6f8 100644 (file)
@@ -45,10 +45,13 @@ int main( int argc, char* argv[] )
   aWindow->show();
   QTest::qWaitForWindowShown( aWindow );
 
-  QSize aSize = aWindow->dumpView().size();
-  int dx = W-aSize.width();
-  int dy = H-aSize.height();
-  aWindow->resize( W+dx, H+dy );
+#ifdef WIN32
+  int dy = 0;
+#else
+  int dy = 34;
+#endif
+  //std::cout << dx << "," << dy << std::endl;
+  aWindow->resize( W, H+dy );
   anApp.processEvents();
 
   std::string testPath = (argc > 1) ? std::string(argv[1]) : "";