From: asl Date: Mon, 19 Oct 2015 06:17:51 +0000 (+0300) Subject: correction of the test window size on Linux X-Git-Tag: v1.5~92 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7fec4faf11fc04017566a0419ee824839ed71fd4;p=modules%2Fhydro.git correction of the test window size on Linux --- diff --git a/src/HYDRO_tests/test_HYDROData_Main.cxx b/src/HYDRO_tests/test_HYDROData_Main.cxx index fb731922..507c6b55 100644 --- a/src/HYDRO_tests/test_HYDROData_Main.cxx +++ b/src/HYDRO_tests/test_HYDROData_Main.cxx @@ -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]) : "";