summaryrefslogtreecommitdiff
path: root/src/items/database
diff options
context:
space:
mode:
authorPetr Vanek <petr@scribus.info>2009-03-18 09:17:52 +0100
committerLukáš Lalinský <lalinsky@gmail.com>2009-03-18 09:17:52 +0100
commit04003cef37595c7b6f8de37afb7f0c46a0b5ed94 (patch)
treefd7ed832050f607c208652f8bfa7fd7b6acfc65c /src/items/database
parent79ca42fb34cc8f2a4fe893fcdccb9b385f4e1ba2 (diff)
downloaddbmodel-04003cef37595c7b6f8de37afb7f0c46a0b5ed94.tar.xz
A few Windows-related bug/warning fixes
Diffstat (limited to 'src/items/database')
-rw-r--r--src/items/database/databaserelationship.cpp4
-rw-r--r--src/items/database/databasetable.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/items/database/databaserelationship.cpp b/src/items/database/databaserelationship.cpp
index c1cddce..751bb90 100644
--- a/src/items/database/databaserelationship.cpp
+++ b/src/items/database/databaserelationship.cpp
@@ -178,7 +178,7 @@ DatabaseRelationship::setChildColumn(Column *column)
{
if (d->childColumn != column) {
d->childColumn = column;
- emit propertyChanged("childColumn", column);
+ emit propertyChanged("childColumn", qVariantFromValue<Column*>(column));
static_cast<DatabaseTable *>(connector(0)->hub()->owner())->updateLayout();
updateLayout();
update();
@@ -196,7 +196,7 @@ DatabaseRelationship::setParentColumn(Column *column)
{
if (d->parentColumn != column) {
d->parentColumn = column;
- emit propertyChanged("parentColumn", column);
+ emit propertyChanged("parentColumn", qVariantFromValue<Column*>(column));
updateLayout();
update();
}
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;