From: ouv Date: Wed, 11 Sep 2013 11:46:17 +0000 (+0000) Subject: HYDRO bug 17: add HYDRO version in About dialog. X-Git-Tag: BR_hydro_v_0_1~40 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=07343abeab6a4c4d86bf836b59aff6fbe34b683a;p=modules%2Fhydro.git HYDRO bug 17: add HYDRO version in About dialog. --- diff --git a/src/HYDROGUI/HYDROGUI.h b/src/HYDROGUI/HYDROGUI.h index 5a707069..85d323f8 100644 --- a/src/HYDROGUI/HYDROGUI.h +++ b/src/HYDROGUI/HYDROGUI.h @@ -53,5 +53,7 @@ #define HYDRO_ASSERT(x) #endif +#define HYDRO_VERSION "0.1" + #endif diff --git a/src/HYDROGUI/HYDROGUI_Module.cxx b/src/HYDROGUI/HYDROGUI_Module.cxx index 491c9c3d..c355b51c 100644 --- a/src/HYDROGUI/HYDROGUI_Module.cxx +++ b/src/HYDROGUI/HYDROGUI_Module.cxx @@ -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()