Support older qwt

This commit is contained in:
Robert Taylor 2022-12-09 15:50:24 +00:00
parent e72c2b7af1
commit 842602cdcb
2 changed files with 13 additions and 0 deletions

View File

@ -21,6 +21,13 @@
#include <QFrame>
#include <QHBoxLayout>
#include <QVBoxLayout>
//Work sround for older qwt releases
#include <QtGlobal>
#if QT_VERSION >= 0x050400
#define QT_STATIC_CONST static const
#endif
#include <qwt_scale_draw.h>
#include <qwt_scale_map.h>
#include <qwt_scale_widget.h>

View File

@ -17,6 +17,12 @@
#ifndef BORA_SLICING_PLOT_WIDGET_H
#define BORA_SLICING_PLOT_WIDGET_H
//Work sround for older qwt releases
#include <QtGlobal>
#if QT_VERSION >= 0x050400
#define QT_STATIC_CONST static const
#endif
#include <vector>
#include <qwt_plot.h>
#include <qwt_picker.h>