From: rnv Date: Tue, 14 Feb 2017 11:23:24 +0000 (+0300) Subject: Merge branch 'rnv/23406' X-Git-Tag: SHAPER_2.7.0~3^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d7806d780335583bcf4ebcdc0dc9f76565afa211;p=modules%2Fgui.git Merge branch 'rnv/23406' --- d7806d780335583bcf4ebcdc0dc9f76565afa211 diff --cc src/SUITApp/SUITApp.cxx index 979783334,979783334..8c1fd4b6c --- a/src/SUITApp/SUITApp.cxx +++ b/src/SUITApp/SUITApp.cxx @@@ -57,6 -57,6 +57,9 @@@ #include #include #include ++#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0) ++#include ++#endif #include @@@ -179,6 -179,6 +182,15 @@@ int main( int argc, char* argv[] } } ++#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0) ++ // initialization of the X11 visual on Linux ++ QSurfaceFormat format; ++ format.setDepthBufferSize(16); ++ format.setStencilBufferSize(1); ++ format.setProfile(QSurfaceFormat::CompatibilityProfile); ++ QSurfaceFormat::setDefaultFormat(format); ++#endif ++ // add /plugins directory to the pluins search path for image plugins QString qtdir = Qtx::qtDir( "plugins" ); if ( !qtdir.isEmpty() )