]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
HYDRO bug 17: add HYDRO version in About dialog.
authorouv <ouv@opencascade.com>
Wed, 11 Sep 2013 11:46:17 +0000 (11:46 +0000)
committerouv <ouv@opencascade.com>
Wed, 11 Sep 2013 11:46:17 +0000 (11:46 +0000)
src/HYDROGUI/HYDROGUI.h
src/HYDROGUI/HYDROGUI_Module.cxx

index 5a70706943c074c626c188c0e954d77e37d7df6e..85d323f86f3ca0506485a7ad8a6c0e7f43a83940 100644 (file)
@@ -53,5 +53,7 @@
 #define HYDRO_ASSERT(x)
 #endif
 
+#define HYDRO_VERSION "0.1"
+
 #endif
 
index 491c9c3d23695ca701476304f5ef4bd2a55719c9..c355b51cc17d09b81ec638636f5c95c53e4c5e58 100644 (file)
@@ -70,7 +70,7 @@ extern "C" HYDRO_EXPORT CAM_Module* createModule()
 
 extern "C" HYDRO_EXPORT char* getModuleVersion()
 {
-  return QString( "0.1" ).toLatin1().data();
+  return (char*)HYDRO_VERSION;
 }
 
 HYDROGUI_Module::HYDROGUI_Module()