From cc9c08cad3648fd9525a0b7c3897ae22d5632c84 Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Tue, 25 May 2010 11:26:04 +1000 Subject: 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. --- src/gui/graphicsview/qgraphicswidget_p.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v0.12 From 7c33aef69f59f92c9efbe43368aba33d6391be0c Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 25 May 2010 10:03:00 +0200 Subject: Revert "tst_bic: make it possible to test for cross-compilation" This reverts commit b5f1a55c3112f46f27e2306fac7d93bde96152e6. --- tests/auto/bic/gen.sh | 2 +- tests/auto/bic/tst_bic.cpp | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/tests/auto/bic/gen.sh b/tests/auto/bic/gen.sh index 7bcad24..8005880 100755 --- a/tests/auto/bic/gen.sh +++ b/tests/auto/bic/gen.sh @@ -56,7 +56,7 @@ fi for module in $modules; do echo "#include <$module/$module>" >test.cpp - ${CXX-g++} $CXXFLAGS -c -I$QTDIR/include -DQT_NO_STL -DQT3_SUPPORT -fdump-class-hierarchy test.cpp + g++ -c -I$QTDIR/include -DQT_NO_STL -DQT3_SUPPORT -fdump-class-hierarchy test.cpp mv test.cpp*.class $module.$2.txt # Remove template classes from the output perl -pi -e '$skip = 1 if (/^(Class|Vtable).* Date: Tue, 25 May 2010 10:46:39 +0200 Subject: Fix architecture detection on GNU/Hurd. On GNU/Hurd, `uname -m` returns a string like "i686-AT386", which is not recognized. Instead, do a specific mangling on "GNU" host, the same done by autotools' config.guess, so the architecture can be identified and the proper atomic primitives used. Merge-request: 638 Reviewed-by: Oswald Buddenhagen --- configure | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure b/configure index f2023b8..0111f51 100755 --- a/configure +++ b/configure @@ -2755,6 +2755,17 @@ fi if [ -z "${CFG_HOST_ARCH}" ]; then case "$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_MACHINE" in + GNU:*:*) + CFG_HOST_ARCH=`echo ${UNAME_MACHINE} | sed -e 's,[-/].*$,,'` + case "$CFG_HOST_ARCH" in + i?86) + CFG_HOST_ARCH=i386 + ;; + esac + if [ "$OPT_VERBOSE" = "yes" ]; then + echo " GNU/Hurd ($CFG_HOST_ARCH)" + fi + ;; IRIX*:*:*) CFG_HOST_ARCH=`uname -p` if [ "$OPT_VERBOSE" = "yes" ]; then -- cgit v0.12 From d9e41640dcbd7a5f5f9d7afb1024e1c4f6672f6e Mon Sep 17 00:00:00 2001 From: John Brooks Date: Tue, 25 May 2010 10:51:39 +0200 Subject: Added MSVC 2010 project files to .gitignore Merge-request: 2394 Reviewed-by: Oswald Buddenhagen --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 04f6e7e..4e3b130 100644 --- a/.gitignore +++ b/.gitignore @@ -131,6 +131,8 @@ qrc_*.cpp *.vcproj *vcproj.*.*.user *.ncb +*.vcxproj +*.vcxproj.filters # MinGW generated files *.Debug -- cgit v0.12