Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 478 Bytes
#include <QPainter>
#include "SharpLine.h"
using namespace WTS;
SharpLine::SharpLine(QGraphicsScene * scene)
: QGraphicsLineItem(0., 0., 0., 1., 0, scene)
{
}
void SharpLine::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
QPainter::RenderHints hints = painter->renderHints();
painter->setRenderHint(QPainter::Antialiasing, false);
QGraphicsLineItem::paint(painter, option, widget);
painter->setRenderHints(hints);
}
Something went wrong with that request. Please try again.