Help line cosmetic changes

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3619 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2015-01-19 00:12:05 +00:00
parent 13c6ce48ae
commit 419be89382

View File

@@ -313,8 +313,9 @@ void Terminal::paint(QPainter *p, const QStyleOptionGraphicsItem *options, QWidg
{
m_help_line_a = new QGraphicsLineItem(this);
QPen pen;
pen.setWidthF(0.2);
pen.setCosmetic(true);
pen.setColor(Qt::darkGray);
pen.setStyle(Qt::DotLine);
m_help_line_a -> setPen(pen);
}
@@ -337,7 +338,7 @@ void Terminal::paint(QPainter *p, const QStyleOptionGraphicsItem *options, QWidg
line.setP2(m_help_line_a -> mapFromScene(line.p2()));
m_help_line_a -> setLine(line);
}
p -> restore();
}