]> Creatis software - clitk.git/commitdiff
The absence of libstatgrab is now insensitive
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Mon, 2 May 2011 07:12:43 +0000 (09:12 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Mon, 2 May 2011 07:12:43 +0000 (09:12 +0200)
CMakeLists.txt
vv/vvInfoPanel.cxx
vv/vvInfoPanel.h

index 3bb462c26acc90387183a7e32ac844e5bc32f87d..de9c55b0006aa0f489a39da99e1a281bdf0cfc3f 100644 (file)
@@ -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)
index 44290450473d56957a6d439a1751385748ebc689..da2bda3828c8bdb081e4786184eb49e1568c191f 100644 (file)
 
 #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)
index c064b3ae4b4d318162d3bdb674ee463cd5edad20..5418703e04cc4f74b21e225341db76a65a1a0191 100644 (file)
@@ -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);