summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2010-05-25 01:26:04 (GMT)
committerRohan McGovern <rohan.mcgovern@nokia.com>2010-05-25 01:26:04 (GMT)
commitcc9c08cad3648fd9525a0b7c3897ae22d5632c84 (patch)
tree4ed71b8cd810bbb0165a58237779549455d30403 /src
parentde0858687898f6e0e54cce3f986779c7aa1a350e (diff)
downloadQt-cc9c08cad3648fd9525a0b7c3897ae22d5632c84.zip
Qt-cc9c08cad3648fd9525a0b7c3897ae22d5632c84.tar.gz
Qt-cc9c08cad3648fd9525a0b7c3897ae22d5632c84.tar.bz2
Fixed compile with xlC.
When given `flags |= foo | bar;', where `flags' is a bitfield, xlC says: The bit-field "flags" cannot be bound to a non-const reference `flags |= foo; flags |= bar;' works.
Diffstat (limited to 'src')
-rw-r--r--src/gui/graphicsview/qgraphicswidget_p.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicswidget_p.cpp b/src/gui/graphicsview/qgraphicswidget_p.cpp
index 076e8626..28070da 100644
--- a/src/gui/graphicsview/qgraphicswidget_p.cpp
+++ b/src/gui/graphicsview/qgraphicswidget_p.cpp
@@ -79,7 +79,8 @@ void QGraphicsWidgetPrivate::init(QGraphicsItem *parentItem, Qt::WindowFlags wFl
resolveLayoutDirection();
q->unsetWindowFrameMargins();
- flags |= QGraphicsItem::ItemUsesExtendedStyleOption | QGraphicsItem::ItemSendsGeometryChanges;
+ flags |= QGraphicsItem::ItemUsesExtendedStyleOption;
+ flags |= QGraphicsItem::ItemSendsGeometryChanges;
if (windowFlags & Qt::Window)
flags |= QGraphicsItem::ItemIsPanel;
}