{
public:
{
painter->setBrush( brush() );
painter->setPen( pen() );
const int sw = sz.width();
const int sh = sz.height();
const int sw2 = sz.width() / 2;
const int sh2 = sz.height() / 2;
path.moveTo(pos);
path.lineTo(pos.x()-sw2,pos.y()); path.lineTo(pos.x(),pos.y()+sh2); path.lineTo(pos);
painter->drawPath(path);
}
};
class Symbol:public QwtSymbol
{
public:
Symbol(const QBrush &, const QPen &, const QSize & ): QwtSymbol(QwtSymbol::NoSymbol, br, p, sz)
void drawSymbol( QPainter *, const QPointF & ) const
{
painter->setBrush( brush() );
painter->setPen( pen() );
const QSize sz = size();
const int sw = sz.width();
const int sh = sz.height();
const int sw2 = sz.width() / 2;
const int sh2 = sz.height() / 2;
QPainterPath path;
path.moveTo(pos);
path.lineTo(pos.x()-sw2,pos.y()); path.lineTo(pos.x(),pos.y()+sh2); path.lineTo(pos);
painter->drawPath(path);
}
};
To copy to clipboard, switch view to plain text mode
Bookmarks