// File : SALOME_HelpWindow.cxx
// Created : Thu Dec 18 12:01:00 2002
-// Author : Vadim SANDLER
+// Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
// Project : SALOME
// Module : Installation Wizard
-// Copyright : 2004-2005 CEA
+// Copyright : 2002-2010 CEA
#include "SALOME_HelpWindow.hxx"
#include "SALOME_InstallWizard.hxx"
// ================================================================
HelpWindow::HelpWindow( SALOME_InstallWizard* wizard ) : QMainWindow( 0, "SalomeProHelpWindow", WDestructiveClose )
{
- QString hlpFile = QDir::currentDirPath() + "/doc/readme.html";
+ QString hlpFile = QDir( SALOME_InstallWizard::rootDirPath() ).filePath( "doc/readme.html" );
QString hlpDir = ".";
// caption
setCaption( wizard->getCaption() + " " + wizard->getIWName() + " " + tr( "Help" ) );
// ================================================================
HelpWindow* HelpWindow::openHelp( SALOME_InstallWizard* wizard )
{
- if ( QFile::exists( QDir::currentDirPath() + "/doc/readme.html" ) )
+ if ( QFile::exists( QDir( SALOME_InstallWizard::rootDirPath() ).filePath( "doc/readme.html" ) ) )
return new HelpWindow( wizard );
else
return 0;