summaryrefslogtreecommitdiffstats
path: root/tests/arthur
diff options
context:
space:
mode:
Diffstat (limited to 'tests/arthur')
-rw-r--r--tests/arthur/common/paintcommands.cpp2
-rw-r--r--tests/arthur/common/paintcommands.h3
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;