From b7629f6c67ae4f9c443faa0d8d8d8823c57c0bfe Mon Sep 17 00:00:00 2001 From: l_maliakal_d Date: Fri, 15 Mar 2013 08:11:52 +0000 Subject: [PATCH] included a flag to print log or not git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@167 af1100a4-978c-4157-bff7-07162d2ba061 --- slsDetectorGui/include/qDebugStream.h | 2 ++ slsDetectorGui/slsDetectorGui.pro | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/slsDetectorGui/include/qDebugStream.h b/slsDetectorGui/include/qDebugStream.h index 93f32acc8..816fcd78d 100644 --- a/slsDetectorGui/include/qDebugStream.h +++ b/slsDetectorGui/include/qDebugStream.h @@ -30,7 +30,9 @@ using namespace std; class qStreamEvent:public QEvent{ public: qStreamEvent(QString s):QEvent(static_cast(STREAMEVENT)),str(s){ +#ifdef PRINT_LOG printf("%s\n",str.toAscii().constData()); +#endif } /** \returns the progress index */ QString getString() {return str;} diff --git a/slsDetectorGui/slsDetectorGui.pro b/slsDetectorGui/slsDetectorGui.pro index 6aafb84ad..465f7e448 100644 --- a/slsDetectorGui/slsDetectorGui.pro +++ b/slsDetectorGui/slsDetectorGui.pro @@ -22,7 +22,7 @@ CONFIG += debug no_include_pwd QMAKE_CXXFLAGS_WARN_ON = -w QMAKE_CFLAGS_WARN_ON = -w -DEFINES += VERBOSE DACS_INT THIS_PATH=\\\"$$PWD\\\" #VERYVERBOSE +DEFINES += VERBOSE DACS_INT PRINT_LOG THIS_PATH=\\\"$$PWD\\\" #VERYVERBOSE target.path += $(DESTDIR)