From: Simon Rit Date: Mon, 2 May 2011 07:12:43 +0000 (+0200) Subject: The absence of libstatgrab is now insensitive X-Git-Tag: v1.2.0~10 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=0da01507edebb08823c58282f1fbcee4f1aee4bb;p=clitk.git The absence of libstatgrab is now insensitive --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 3bb462c..de9c55b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,7 @@ ENDIF (CLITK_GENGETOPT STREQUAL "CLITK_GENGETOPT-NOTFOUND") # Find libstatgrab is installed, add clitkMemoryUsage.cxx in the library FIND_LIBRARY(LIBSTATGRAB NAMES statgrab PATHS) IF (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") - MESSAGE("Install libstatgrab (http://www.i-scream.org/libstatgrab/) for memory usage information") +# MESSAGE("Install libstatgrab (http://www.i-scream.org/libstatgrab/) for memory usage information") SET(CLITK_MEMORY_INFO OFF) ELSE (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") SET(CLITK_MEMORY_INFO ON) diff --git a/vv/vvInfoPanel.cxx b/vv/vvInfoPanel.cxx index 4429045..da2bda3 100644 --- a/vv/vvInfoPanel.cxx +++ b/vv/vvInfoPanel.cxx @@ -20,6 +20,17 @@ #include "vvInfoPanel.h" #include "clitkMemoryUsage.h" +#include "clitkConfiguration.h" + +//------------------------------------------------------------------------------ +vvInfoPanel::vvInfoPanel(QWidget * parent):QWidget(parent) +{ + setupUi(this); +#if CLITK_MEMORY_INFO==0 + memoryUsageLabel->hide(); +#endif +} +//------------------------------------------------------------------------------ //------------------------------------------------------------------------------ void vvInfoPanel::setTransformation(QString text) diff --git a/vv/vvInfoPanel.h b/vv/vvInfoPanel.h index c064b3a..5418703 100644 --- a/vv/vvInfoPanel.h +++ b/vv/vvInfoPanel.h @@ -27,9 +27,7 @@ class vvInfoPanel : public QWidget, private Ui::vvInfoPanel Q_OBJECT public: - vvInfoPanel(QWidget * parent=0):QWidget(parent) { - setupUi(this); - } + vvInfoPanel(QWidget * parent=0); ~vvInfoPanel() {} void setTransformation(QString text);