equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the test suite of the Qt Toolkit. |
7 ** This file is part of the test suite of the Qt Toolkit. |
8 ** |
8 ** |
1578 } |
1578 } |
1579 |
1579 |
1580 void tst_QPainter::drawClippedEllipse() |
1580 void tst_QPainter::drawClippedEllipse() |
1581 { |
1581 { |
1582 QFETCH(QRect, rect); |
1582 QFETCH(QRect, rect); |
1583 #if defined(Q_OS_WINCE) || defined(Q_OS_SYMBIAN) |
|
1584 if (sizeof(qreal) != sizeof(double)) |
1583 if (sizeof(qreal) != sizeof(double)) |
1585 QSKIP("Test only works for qreal==double", SkipAll); |
1584 QSKIP("Test only works for qreal==double", SkipAll); |
1586 #endif |
|
1587 QImage image(rect.width() + 1, rect.height() + 1, |
1585 QImage image(rect.width() + 1, rect.height() + 1, |
1588 QImage::Format_ARGB32_Premultiplied); |
1586 QImage::Format_ARGB32_Premultiplied); |
1589 QRect expected = QRect(rect.x(), rect.y(), rect.width()+1, rect.height()+1) |
1587 QRect expected = QRect(rect.x(), rect.y(), rect.width()+1, rect.height()+1) |
1590 & QRect(0, 0, image.width(), image.height()); |
1588 & QRect(0, 0, image.width(), image.height()); |
1591 |
1589 |