diff options
Diffstat (limited to 'tests/arthur/common/paintcommands.cpp')
-rw-r--r-- | tests/arthur/common/paintcommands.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/arthur/common/paintcommands.cpp b/tests/arthur/common/paintcommands.cpp index 6ab71f8..6c3d26b 100644 --- a/tests/arthur/common/paintcommands.cpp +++ b/tests/arthur/common/paintcommands.cpp @@ -351,7 +351,7 @@ void PaintCommands::staticInit() "^gradient_setCoordinateMode\\s+(\\w*)$", "gradient_setCoordinateMode <coordinate method enum>", "gradient_setCoordinateMode ObjectBoundingMode"); - +#ifdef QT3_SUPPORT DECL_PAINTCOMMANDSECTION("qt3 drawing ops"); DECL_PAINTCOMMAND("qt3_drawArc", command_qt3_drawArc, "^qt3_drawArc\\s+(-?\\w*)\\s+(-?\\w*)\\s+(-?\\w*)\\s+(-?\\w*)\\s+(-?\\w*)\\s+(-?\\w*)$", @@ -377,7 +377,7 @@ void PaintCommands::staticInit() "^qt3_drawRoundRect\\s+(-?\\w*)\\s+(-?\\w*)\\s+(-?\\w*)\\s+(-?\\w*)\\s*(-?\\w)?\\s*(-?\\w)?$", "qt3_drawRoundRect <x> <y> <w> <h> [rx] [ry]", "qt3_drawRoundRect 10 10 20 20 3 3"); - +#endif DECL_PAINTCOMMANDSECTION("drawing ops"); DECL_PAINTCOMMAND("drawPoint", command_drawPoint, "^drawPoint\\s+(-?[\\w.]*)\\s+(-?[\\w.]*)$", @@ -1237,6 +1237,7 @@ void PaintCommands::command_drawArc(QRegExp re) m_painter->drawArc(x, y, w, h, angle, sweep); } +#ifdef QT3_SUPPORT /***************************************************************************************************/ void PaintCommands::command_qt3_drawRect(QRegExp re) { @@ -1352,7 +1353,7 @@ void PaintCommands::command_qt3_drawArc(QRegExp re) static_cast<Q3Painter*>(m_painter)->drawArc(x, y, w, h, angle, sweep); #endif } - +#endif //QT3_SUPPORT /***************************************************************************************************/ void PaintCommands::command_drawText(QRegExp re) { |