Skip to content

Commit

Permalink
Use some qwt6 features also for qwt6.0
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20406 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed May 6, 2014
1 parent f19e3dc commit 022365c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions OMPlot/OMPlotGUI/Plot.cpp
Expand Up @@ -34,7 +34,7 @@
#include "PlotWindow.h"
#include "ScaleDraw.h"
#include "qwt_plot_canvas.h"
#if QWT_VERSION < 0x060100
#if QWT_VERSION < 0x060000
#include "qwt_legend_item.h"
#endif

Expand Down Expand Up @@ -65,7 +65,7 @@ Plot::Plot(PlotWindow *pParent)
canvas()->setCursor(Qt::ArrowCursor);
setCanvasBackground(Qt::white);
setContentsMargins(10, 10, 10, 10);
#if QWT_VERSION >= 0x060100
#if QWT_VERSION >= 0x060000
/*
Ticket #2679 point 2.
Move the canvas little bit from bottom and left to align the axis at starting point.
Expand Down
2 changes: 1 addition & 1 deletion OMPlot/OMPlotGUI/PlotCurve.cpp
Expand Up @@ -32,7 +32,7 @@
*/

#include "PlotCurve.h"
#if QWT_VERSION < 0x060100
#if QWT_VERSION < 0x060000
#include "qwt_legend_item.h"
#endif
#include "qwt_symbol.h"
Expand Down
4 changes: 2 additions & 2 deletions OMPlot/OMPlotGUI/ScaleDraw.cpp
Expand Up @@ -36,7 +36,7 @@
*/

#include "ScaleDraw.h"
#if QWT_VERSION >= 0x060100
#if QWT_VERSION >= 0x060000

#include "qwt_painter.h"
#include "qwt_scale_map.h"
Expand Down Expand Up @@ -193,4 +193,4 @@ void ScaleDraw::drawTick( QPainter *painter, double value, double len ) const
}
}

#endif // #if QWT_VERSION >= 0x060100
#endif // #if QWT_VERSION >= 0x060000
4 changes: 2 additions & 2 deletions OMPlot/OMPlotGUI/ScaleDraw.h
Expand Up @@ -39,7 +39,7 @@
#define SCALEDRAW_H

#include "qwt_scale_draw.h"
#if QWT_VERSION >= 0x060100
#if QWT_VERSION >= 0x060000

namespace OMPlot
{
Expand All @@ -53,5 +53,5 @@ class ScaleDraw : public QwtScaleDraw
};
}

#endif // #if QWT_VERSION >= 0x060100
#endif // #if QWT_VERSION >= 0x060000
#endif // SCALEDRAW_H

0 comments on commit 022365c

Please sign in to comment.