From: rnv Date: Thu, 7 Mar 2019 07:55:22 +0000 (+0300) Subject: Run SALOME with UNICODE path: finishing. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Frnv%2Funicode_path;p=modules%2Fgui.git Run SALOME with UNICODE path: finishing. --- diff --git a/src/HelpBrowser/CMakeLists.txt b/src/HelpBrowser/CMakeLists.txt index 4eaa40ccf..ee2a2a7a3 100644 --- a/src/HelpBrowser/CMakeLists.txt +++ b/src/HelpBrowser/CMakeLists.txt @@ -79,3 +79,4 @@ SET(HelpBrowser_SOURCES ADD_EXECUTABLE(HelpBrowser ${HelpBrowser_SOURCES}) TARGET_LINK_LIBRARIES(HelpBrowser ${_link_LIBRARIES}) INSTALL(TARGETS HelpBrowser EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS}) +INSTALL(FILES qt.conf DESTINATION ${SALOME_INSTALL_BINS}) diff --git a/src/HelpBrowser/HelpBrowser.cxx b/src/HelpBrowser/HelpBrowser.cxx index 03cb8f5f3..9f4614942 100644 --- a/src/HelpBrowser/HelpBrowser.cxx +++ b/src/HelpBrowser/HelpBrowser.cxx @@ -39,6 +39,11 @@ #include +#ifdef WIN32 +#include +#endif + + namespace { void printHelp() @@ -151,6 +156,16 @@ int main( int argc, char **argv ) } } +#if defined(WIN32) && defined(UNICODE) + LPWSTR *szArglist = NULL; + int nArgs; + int i; + szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs); + helpfile = QString::fromWCharArray(szArglist[nArgs-1]); + // Free memory allocated for CommandLineToArgvW arguments. + LocalFree(szArglist); +#endif + // Show help and exit if '--help' or '-h' option has been specified via command line if ( showHelp ) { diff --git a/src/HelpBrowser/HelpBrowser.qrc b/src/HelpBrowser/HelpBrowser.qrc index 6fde55835..d5aca3371 100644 --- a/src/HelpBrowser/HelpBrowser.qrc +++ b/src/HelpBrowser/HelpBrowser.qrc @@ -1,6 +1,5 @@ COPYING - qt.conf