summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/text/qstatictext/tst_qstatictext.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-10-25 11:28:47 +0200
committerQt by Nokia <qt-info@nokia.com>2011-10-27 09:50:30 +0200
commit0c3d898a03b675c942e5c8a798b54676d3edf3ae (patch)
tree3e9ea3d434f80fc6bc43c9249c53a7d8b12cc180 /tests/auto/gui/text/qstatictext/tst_qstatictext.cpp
parent3849455ee791d6f5cd4b87253732827d40e5d28a (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/text/qstatictext/tst_qstatictext.cpp')
-rw-r--r--tests/auto/gui/text/qstatictext/tst_qstatictext.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/tests/auto/gui/text/qstatictext/tst_qstatictext.cpp b/tests/auto/gui/text/qstatictext/tst_qstatictext.cpp
index 4bd50008db..05854440c6 100644
--- a/tests/auto/gui/text/qstatictext/tst_qstatictext.cpp
+++ b/tests/auto/gui/text/qstatictext/tst_qstatictext.cpp
@@ -388,18 +388,7 @@ bool tst_QStaticText::supportsTransformations() const
{
QPixmap pm(10, 10);
QPainter p(&pm);
- QPaintEngine *engine = p.paintEngine();
-
- QPaintEngine::Type type = engine->type();
-
- if (type == QPaintEngine::OpenGL
-#if !defined(Q_WS_WIN) && !defined(Q_WS_X11) && !defined(Q_WS_MAC) && !defined(Q_WS_QPA)
- || type == QPaintEngine::Raster
-#endif
- )
- return false;
-
- return true;
+ return p.paintEngine()->type() != QPaintEngine::OpenGL;
}
void tst_QStaticText::rotatedPainter()