diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-10-25 11:28:47 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-27 09:50:30 +0200 |
commit | 0c3d898a03b675c942e5c8a798b54676d3edf3ae (patch) | |
tree | 3e9ea3d434f80fc6bc43c9249c53a7d8b12cc180 /tests/auto/gui/image | |
parent | 3849455ee791d6f5cd4b87253732827d40e5d28a (diff) |
Tests: Remove Q_WS_QPA, qpa-sections from .profiles.
Compile without -qpa.
- Make Q_WS_QPA-#ifdefed sections the default in the code
- Replace some Q_WS_ by Q_OS_
- Add ### fixme for places that need checking
- Remove qpa conditionals from .pro files.
Change-Id: I6ea930afc0c236cc12a7b7e95f1b8a1c24b3a513
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'tests/auto/gui/image')
-rw-r--r-- | tests/auto/gui/image/qpixmap/tst_qpixmap.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp b/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp index 5ff764378a..98b8570b12 100644 --- a/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp +++ b/tests/auto/gui/image/qpixmap/tst_qpixmap.cpp @@ -52,6 +52,7 @@ #include <qsplashscreen.h> #include <qplatformpixmap_qpa.h> +#include <private/qguiapplication_p.h> #include <private/qdrawhelper_p.h> #include <QSet> @@ -774,9 +775,8 @@ void tst_QPixmap::grabWidget() void tst_QPixmap::grabWindow() { -#ifdef Q_WS_QPA +// ### fixme: Check platforms QSKIP("QTBUG-20863 grabWindow is broken on most qpa backends"); -#endif #ifdef Q_OS_WINCE // We get out of memory, if the desktop itself is too big. if (QApplication::desktop()->width() <= 480) @@ -1083,10 +1083,6 @@ void tst_QPixmap::fromWinHICON() void tst_QPixmap::onlyNullPixmapsOutsideGuiThread() { -#ifdef Q_WS_QPA - QSKIP("QTBUG-20864 can't determine if threaded pixmaps are available for qpa"); -#endif -#if !defined(Q_WS_WIN) && !defined(Q_WS_MAC) class Thread : public QThread { public: @@ -1108,10 +1104,12 @@ void tst_QPixmap::onlyNullPixmapsOutsideGuiThread() QVERIFY(pixmap2.isNull()); } }; + if (QGuiApplicationPrivate::platform_integration->hasCapability(QPlatformIntegration::ThreadedPixmaps)) + QSKIP("This platform supports threaded pixmaps."); + Thread thread; thread.start(); thread.wait(); -#endif // !defined(Q_WS_WIN) && !defined(Q_WS_MAC) } void tst_QPixmap::refUnref() |