From c38f50538e0ae9df986feeee4f256d0e1fc7148f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 2 Dec 2017 18:24:44 +0100 Subject: [PATCH] Do not use the alpha channel for graphs --- src/GUI/graphview.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/GUI/graphview.cpp b/src/GUI/graphview.cpp index 7a53cf70..d7a5b69a 100644 --- a/src/GUI/graphview.cpp +++ b/src/GUI/graphview.cpp @@ -181,9 +181,12 @@ void GraphView::showSliderInfo(bool show) void GraphView::addGraph(GraphItem *graph, PathItem *path, int id) { + QColor color(_palette.nextColor()); + color.setAlpha(255); + graph->setUnits(_units); graph->setId(id); - graph->setColor(_palette.nextColor()); + graph->setColor(color); graph->setWidth(_width); connect(this, SIGNAL(sliderPositionChanged(qreal)), graph, @@ -458,8 +461,11 @@ void GraphView::setPalette(const Palette &palette) _palette = palette; _palette.reset(); - for (int i = 0; i < _graphs.count(); i++) - _graphs.at(i)->setColor(_palette.nextColor()); + for (int i = 0; i < _graphs.count(); i++) { + QColor color(_palette.nextColor()); + color.setAlpha(255); + _graphs.at(i)->setColor(color); + } } void GraphView::setGraphWidth(int width)