From: Alexey Chernobaev Date: Sat, 24 Mar 2018 22:54:45 +0000 (+0300) Subject: minor fix to be able to build without QWT X-Git-Tag: submit/tizen/20180620.112952^2^2~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5acc792e83bc310719770d015069eb718c4d667f;p=sdk%2Ftools%2Fheaptrack.git minor fix to be able to build without QWT --- diff --git a/src/analyze/gui/chartwidget.h b/src/analyze/gui/chartwidget.h index 74ab07c..fbca5d6 100644 --- a/src/analyze/gui/chartwidget.h +++ b/src/analyze/gui/chartwidget.h @@ -20,7 +20,6 @@ #define CHARTWIDGET_H #include "gui_config.h" -#include "contextmenuqwt.h" #include #include @@ -40,6 +39,7 @@ class Chart; } #elif defined(QWT_FOUND) #include "chartwidgetqwtplot.h" +#include "contextmenuqwt.h" class QAction; #endif diff --git a/src/analyze/gui/histogramwidget.cpp b/src/analyze/gui/histogramwidget.cpp index 45d97a5..dedc79e 100644 --- a/src/analyze/gui/histogramwidget.cpp +++ b/src/analyze/gui/histogramwidget.cpp @@ -214,12 +214,12 @@ void HistogramWidget::setModel(HistogramModel *model) #endif } +#ifdef QWT_FOUND void HistogramWidget::updateOnSelected() { m_plot->setOptions(ChartOptions::GlobalOptions); } -#ifdef QWT_FOUND void HistogramWidget::modelReset() { m_plot->rebuild(); diff --git a/src/analyze/gui/histogramwidget.h b/src/analyze/gui/histogramwidget.h index f2f9662..45aa1f2 100644 --- a/src/analyze/gui/histogramwidget.h +++ b/src/analyze/gui/histogramwidget.h @@ -20,7 +20,6 @@ #define HISTOGRAMWIDGET_H #include "gui_config.h" -#include "contextmenuqwt.h" #include #include @@ -39,6 +38,7 @@ class BarDiagram; } #elif defined(QWT_FOUND) #include "histogramwidgetqwtplot.h" +#include "contextmenuqwt.h" #endif class HistogramModel; @@ -52,9 +52,9 @@ public: void setModel(HistogramModel* model); +#ifdef QWT_FOUND void updateOnSelected(); -#ifdef QWT_FOUND public slots: void modelReset(); protected: