#include <QAction>
#include <QDesktopWidget>
#include <QProcess>
+#include <QDesktopServices>
#include <iterator>
if (!aHelpPage.isEmpty()) {
QString aDocDir;
const QChar aSep = QDir::separator();
- QString platform;
- SUIT_ResourceMgr* aResMgr = ModuleBase_Preferences::resourceMgr();
-#ifdef WIN32
- platform = "winapplication";
-#else
- platform = "application";
-#endif
- QString aBrowserName = aResMgr->stringValue("ExternalBrowser", platform);
+// QString platform;
+// SUIT_ResourceMgr* aResMgr = ModuleBase_Preferences::resourceMgr();
+//#ifdef WIN32
+// platform = "winapplication";
+//#else
+// platform = "application";
+//#endif
+// QString aBrowserName = aResMgr->stringValue("ExternalBrowser", platform);
#ifdef HAVE_SALOME
QString aDir(getenv("SHAPER_ROOT_DIR"));
#endif
QString aFileName = aDocDir + aSep + aHelpPage;
if (QFile::exists(aFileName)) {
- QStringList aParams;
- aParams << aFileName;
- QProcess::startDetached(aBrowserName, aParams);
+ QUrl aUrl = QUrl::fromLocalFile(aFileName);
+ QDesktopServices::openUrl(aUrl);
}
}
}