summaryrefslogtreecommitdiff
path: root/databaserelation.cpp
diff options
context:
space:
mode:
authorLukáš Lalinský <lalinsky@gmail.com>2008-11-23 23:36:04 +0100
committerLukáš Lalinský <lalinsky@gmail.com>2008-11-23 23:36:04 +0100
commit4b28f29b0dc2dbb24b6e056a715a780712b27a82 (patch)
tree6c0935081c3a13f67c2e1c431af02a6cafa23358 /databaserelation.cpp
parent2c68786422c6a808b2332ca1b3e10039753ff035 (diff)
downloaddbmodel-4b28f29b0dc2dbb24b6e056a715a780712b27a82.tar.xz
Underline primary keys, give table names a little more space
Diffstat (limited to 'databaserelation.cpp')
-rw-r--r--databaserelation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/databaserelation.cpp b/databaserelation.cpp
index 6f7eab0..4345691 100644
--- a/databaserelation.cpp
+++ b/databaserelation.cpp
@@ -40,6 +40,7 @@ DatabaseRelation::shape() const
path.lineTo(m_line.p2());
path.addPolygon(m_arrowHead);
QPen pen(QPen(QColor(0, 0, 0), 1));
+ pen.setJoinStyle(Qt::MiterJoin);
QPainterPathStroker ps;
ps.setCapStyle(pen.capStyle());
ps.setWidth(pen.widthF() + 0.3);
@@ -55,6 +56,7 @@ DatabaseRelation::paint(QPainter *painter, const QStyleOptionGraphicsItem *optio
Q_UNUSED(widget);
QPen pen(QPen(QColor(0, 0, 0), 1));
+ pen.setJoinStyle(Qt::MiterJoin);
painter->setPen(pen);
painter->drawLine(m_line);
painter->setBrush(pen.color());