From 07343abeab6a4c4d86bf836b59aff6fbe34b683a Mon Sep 17 00:00:00 2001 From: ouv Date: Wed, 11 Sep 2013 11:46:17 +0000 Subject: [PATCH] HYDRO bug 17: add HYDRO version in About dialog. --- src/HYDROGUI/HYDROGUI.h | 2 ++ src/HYDROGUI/HYDROGUI_Module.cxx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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() -- 2.39.2