mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 16:50:53 +01:00
Basic shapes add setRenderHint(QPainter::Antialiasing, false);
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2880 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -65,6 +65,7 @@ QPainterPath QetShapeItem::shape() const
|
|||||||
|
|
||||||
void QetShapeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
void QetShapeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||||
{
|
{
|
||||||
|
painter -> setRenderHint(QPainter::Antialiasing, false);
|
||||||
QRectF rec = boundingRect();
|
QRectF rec = boundingRect();
|
||||||
QPen pen(Qt::black);
|
QPen pen(Qt::black);
|
||||||
if (isSelected())
|
if (isSelected())
|
||||||
|
|||||||
Reference in New Issue
Block a user