summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexey Chernobaev <achernobaev@dev.rtsoft.ru>2018-03-25 01:54:45 +0300
committerAlexey Chernobaev <achernobaev@dev.rtsoft.ru>2018-03-25 01:54:45 +0300
commit5acc792e83bc310719770d015069eb718c4d667f (patch)
tree4bf2e42e275f9ea7152b80fceab95cb9aa5a7b00 /src
parentf1d2f7d7dad7a4d8ae6dd8164e4b103a312f04c4 (diff)
downloadheaptrack-5acc792e83bc310719770d015069eb718c4d667f.tar.gz
heaptrack-5acc792e83bc310719770d015069eb718c4d667f.tar.bz2
heaptrack-5acc792e83bc310719770d015069eb718c4d667f.zip
minor fix to be able to build without QWT
Diffstat (limited to 'src')
-rw-r--r--src/analyze/gui/chartwidget.h2
-rw-r--r--src/analyze/gui/histogramwidget.cpp2
-rw-r--r--src/analyze/gui/histogramwidget.h4
3 files changed, 4 insertions, 4 deletions
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 <memory>
#include <QWidget>
@@ -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 <memory>
#include <QWidget>
@@ -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: