From 7fec4faf11fc04017566a0419ee824839ed71fd4 Mon Sep 17 00:00:00 2001 From: asl Date: Mon, 19 Oct 2015 09:17:51 +0300 Subject: [PATCH] correction of the test window size on Linux --- src/HYDRO_tests/test_HYDROData_Main.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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]) : ""; -- 2.39.2