From 0da01507edebb08823c58282f1fbcee4f1aee4bb Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Mon, 2 May 2011 09:12:43 +0200 Subject: [PATCH] The absence of libstatgrab is now insensitive --- CMakeLists.txt | 2 +- vv/vvInfoPanel.cxx | 11 +++++++++++ vv/vvInfoPanel.h | 4 +--- 3 files changed, 13 insertions(+), 4 deletions(-) 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); -- 2.45.1