summaryrefslogtreecommitdiff
path: root/src/items/database/databasetable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/items/database/databasetable.cpp')
-rw-r--r--src/items/database/databasetable.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/items/database/databasetable.cpp b/src/items/database/databasetable.cpp
index a987984..8f36308 100644
--- a/src/items/database/databasetable.cpp
+++ b/src/items/database/databasetable.cpp
@@ -68,7 +68,7 @@ DatabaseTable::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
QPen pen(QPen(QColor(0, 0, 0)));
pen.setJoinStyle(Qt::MiterJoin);
QPen borderPen(pen);
- borderPen.setWidth(1.5);
+ borderPen.setWidthF(1.5);
if (!document()->isPrinting() && isSelected()) {
borderPen.setColor(QColor(0, 96, 255));
}
@@ -84,8 +84,8 @@ DatabaseTable::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
painter->drawText(m_namePos, m_name);
painter->drawLine(
- m_leftSideWidth, m_nameBgRect.bottom(),
- m_leftSideWidth, m_outerRect.bottom());
+ QPointF(m_leftSideWidth, m_nameBgRect.bottom()),
+ QPointF(m_leftSideWidth, m_outerRect.bottom()));
// Draw the table name
QPointF colPos = m_firstColPos;