mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-10-06 23:03:22 +02:00
11 lines
183 B
C++
11 lines
183 B
C++
|
#include <QBrush>
|
||
|
#include <QPen>
|
||
|
#include "graphitem.h"
|
||
|
|
||
|
void GraphItem::setColor(const QColor &color)
|
||
|
{
|
||
|
QBrush brush(color, Qt::SolidPattern);
|
||
|
QPen pen(brush, 0);
|
||
|
setPen(pen);
|
||
|
}
|