]> SALOME platform Git repositories - modules/gui.git/blobdiff - src/SUITApp/SUITApp.cxx
Salome HOME
Load Qt resources properly: take into account QT_ROOT_DIR instead of (QTDIR)
[modules/gui.git] / src / SUITApp / SUITApp.cxx
index 861f9df0a55366a43a7cd936abee47e1d8fed62d..f3b8df360d53ba353dcad06a411327f2839cc25f 100644 (file)
@@ -178,7 +178,9 @@ int main( int argc, char* argv[] )
   }
 
   // add $QTDIR/plugins to the pluins search path for image plugins
-  QString qtdir( ::getenv( "QTDIR" ) );
+  QString qtdir = qgetenv( "QT_ROOT_DIR" );
+  if ( qtdir.isEmpty() )
+    qtdir = qgetenv( "QTDIR" );
   if ( !qtdir.isEmpty() )
     QApplication::addLibraryPath( QDir( qtdir ).absoluteFilePath( "plugins" ) );