Enable tst_QGraphicsView on OSX

Change-Id: If1cec2ff90ff0a4bdcfdd0e21aa5c2118ce4e862
Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
bb10
Jørgen Lind 2014-09-17 10:32:56 +02:00 committed by Jørgen Lind
parent 7ca909a119
commit 9d8f51861e
2 changed files with 9 additions and 1 deletions

View File

@ -9,5 +9,4 @@ SOURCES += tst_qgraphicsview.cpp tst_qgraphicsview_2.cpp
HEADERS += tst_qgraphicsview.h
DEFINES += QT_NO_CAST_TO_ASCII
mac:CONFIG+=insignificant_test # QTBUG-26580
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0

View File

@ -143,6 +143,10 @@ class tst_QGraphicsView : public QObject
{
Q_OBJECT
public:
tst_QGraphicsView()
: platformName(qApp->platformName().toLower())
{ }
private slots:
void initTestCase();
void cleanup();
@ -272,6 +276,7 @@ private:
#if defined Q_OS_BLACKBERRY
QScopedPointer<QWidget> rootWindow;
#endif
QString platformName;
};
void tst_QGraphicsView::initTestCase()
@ -2828,6 +2833,8 @@ void tst_QGraphicsView::scrollBarRanges()
if (style == QLatin1String("GTK+") && useStyledPanel)
QSKIP("GTK + style test skipped, see QTBUG-29002");
if (useStyledPanel && style == QStringLiteral("Macintosh") && platformName == QStringLiteral("cocoa"))
QSKIP("Insignificant on OSX");
QGraphicsScene scene;
QGraphicsView view(&scene);
view.setRenderHint(QPainter::Antialiasing);
@ -4734,6 +4741,8 @@ public:
void tst_QGraphicsView::hoverLeave()
{
if (platformName == QStringLiteral("cocoa"))
QSKIP("Insignificant on OSX");
const QRect availableGeometry = QGuiApplication::primaryScreen()->availableGeometry();
QGraphicsScene scene;
QGraphicsView view(&scene);