diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-05-25 01:26:04 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-05-25 01:26:04 (GMT) |
commit | cc9c08cad3648fd9525a0b7c3897ae22d5632c84 (patch) | |
tree | 4ed71b8cd810bbb0165a58237779549455d30403 /src | |
parent | de0858687898f6e0e54cce3f986779c7aa1a350e (diff) | |
download | Qt-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.cpp | 3 |
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; } |