mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
Do not use the alpha channel for graphs
This commit is contained in:
parent
53147b5e6e
commit
c38f50538e
@ -181,9 +181,12 @@ void GraphView::showSliderInfo(bool show)
|
|||||||
|
|
||||||
void GraphView::addGraph(GraphItem *graph, PathItem *path, int id)
|
void GraphView::addGraph(GraphItem *graph, PathItem *path, int id)
|
||||||
{
|
{
|
||||||
|
QColor color(_palette.nextColor());
|
||||||
|
color.setAlpha(255);
|
||||||
|
|
||||||
graph->setUnits(_units);
|
graph->setUnits(_units);
|
||||||
graph->setId(id);
|
graph->setId(id);
|
||||||
graph->setColor(_palette.nextColor());
|
graph->setColor(color);
|
||||||
graph->setWidth(_width);
|
graph->setWidth(_width);
|
||||||
|
|
||||||
connect(this, SIGNAL(sliderPositionChanged(qreal)), graph,
|
connect(this, SIGNAL(sliderPositionChanged(qreal)), graph,
|
||||||
@ -458,8 +461,11 @@ void GraphView::setPalette(const Palette &palette)
|
|||||||
_palette = palette;
|
_palette = palette;
|
||||||
_palette.reset();
|
_palette.reset();
|
||||||
|
|
||||||
for (int i = 0; i < _graphs.count(); i++)
|
for (int i = 0; i < _graphs.count(); i++) {
|
||||||
_graphs.at(i)->setColor(_palette.nextColor());
|
QColor color(_palette.nextColor());
|
||||||
|
color.setAlpha(255);
|
||||||
|
_graphs.at(i)->setColor(color);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphView::setGraphWidth(int width)
|
void GraphView::setGraphWidth(int width)
|
||||||
|
Loading…
Reference in New Issue
Block a user