#4243 Grid Cross Plot: Make legend icons black & white when grouping is enabled and set size from font size

This commit is contained in:
Gaute Lindkvist
2019-03-28 20:09:25 +01:00
parent ee5935aad6
commit 75b0905e26
10 changed files with 113 additions and 6 deletions

View File

@@ -113,6 +113,8 @@ public:
CurveInterpolationEnum interpolationType,
int curveThickness,
const QColor& curveColor);
void setBlackAndWhiteLegendIcon(bool blackAndWhite);
QwtGraphic legendIcon(int index, const QSizeF& size) const override;
protected:
void drawCurve(QPainter* p, int style,
@@ -138,4 +140,5 @@ private:
bool m_showErrorBars;
QwtPlotIntervalCurve* m_errorBars;
QwtPlot* m_attachedToPlot;
bool m_blackAndWhiteLegendIcon;
};