diff options
author | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-09-16 14:30:07 (GMT) |
---|---|---|
committer | Trond Kjernåsen <trond.kjernasen@nokia.com> | 2010-09-16 14:30:07 (GMT) |
commit | a4b69e877850dc4b934f690e3451e586daffb049 (patch) | |
tree | 3064f7a3a08142c6b4906bdfe7dea536922f0b87 /tests/arthur | |
parent | 43a3763e392f05e758085c6b06a5001d9b51aafb (diff) | |
download | Qt-a4b69e877850dc4b934f690e3451e586daffb049.zip Qt-a4b69e877850dc4b934f690e3451e586daffb049.tar.gz Qt-a4b69e877850dc4b934f690e3451e586daffb049.tar.bz2 |
Added support for turning off text drawing.
Text drawing is the one thing that will always differ between
different platforms. If we're going to do any x-platform testing
of the raster engine we'll have to turn text drawing off..
Diffstat (limited to 'tests/arthur')
-rw-r--r-- | tests/arthur/common/paintcommands.cpp | 2 | ||||
-rw-r--r-- | tests/arthur/common/paintcommands.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/arthur/common/paintcommands.cpp b/tests/arthur/common/paintcommands.cpp index 1d7b810..a86b30a 100644 --- a/tests/arthur/common/paintcommands.cpp +++ b/tests/arthur/common/paintcommands.cpp @@ -1378,6 +1378,8 @@ void PaintCommands::command_qt3_drawArc(QRegExp re) /***************************************************************************************************/ void PaintCommands::command_drawText(QRegExp re) { + if (!m_shouldDrawText) + return; QStringList caps = re.capturedTexts(); int x = convertToInt(caps.at(1)); int y = convertToInt(caps.at(2)); diff --git a/tests/arthur/common/paintcommands.h b/tests/arthur/common/paintcommands.h index 4d966b8..ebd882b 100644 --- a/tests/arthur/common/paintcommands.h +++ b/tests/arthur/common/paintcommands.h @@ -90,6 +90,7 @@ public: , m_verboseMode(false) , m_type(WidgetType) , m_checkers_background(true) + , m_shouldDrawText(true) { staticInit(); } public: @@ -115,6 +116,7 @@ public: void setControlPoints(const QVector<QPointF> &points) { staticInit(); m_controlPoints = points; } void setVerboseMode(bool v) { staticInit(); m_verboseMode = v; } void insertAt(int commandIndex, const QStringList &newCommands); + void setShouldDrawText(bool drawText) { m_shouldDrawText = drawText; } // run void runCommands(); @@ -280,6 +282,7 @@ private: bool m_verboseMode; DeviceType m_type; bool m_checkers_background; + bool m_shouldDrawText; QVector<QPointF> m_controlPoints; |