Remove tests/auto/qtest-config.h.

The header defined a macro QTEST_NO_CURSOR depending
QT_NO_CURSOR or obsolete platforms Windows CE and Meego.

Replace usages by QT_NO_CURSOR in the tests.

Change-Id: I3edac88e684d1f932dd3b721bb1c1b3fe9144237
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
This commit is contained in:
Friedemann Kleint 2016-04-11 10:56:36 +02:00
parent cd06d901af
commit c736497483
17 changed files with 72 additions and 141 deletions

View File

@ -35,8 +35,6 @@
#include <QtGui/QPainter> #include <QtGui/QPainter>
#include <QtGui/QPen> #include <QtGui/QPen>
#include "../../../qtest-config.h"
class tst_QDataStream : public QObject class tst_QDataStream : public QObject
{ {
Q_OBJECT Q_OBJECT
@ -65,7 +63,7 @@ private slots:
void stream_QByteArray_data(); void stream_QByteArray_data();
void stream_QByteArray(); void stream_QByteArray();
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void stream_QCursor_data(); void stream_QCursor_data();
void stream_QCursor(); void stream_QCursor();
#endif #endif
@ -189,7 +187,7 @@ private:
void writeQBrush(QDataStream *s); void writeQBrush(QDataStream *s);
void writeQColor(QDataStream *s); void writeQColor(QDataStream *s);
void writeQByteArray(QDataStream *s); void writeQByteArray(QDataStream *s);
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void writeQCursor(QDataStream *s); void writeQCursor(QDataStream *s);
#endif #endif
void writeQWaitCursor(QDataStream *s); void writeQWaitCursor(QDataStream *s);
@ -218,7 +216,7 @@ private:
void readQBrush(QDataStream *s); void readQBrush(QDataStream *s);
void readQColor(QDataStream *s); void readQColor(QDataStream *s);
void readQByteArray(QDataStream *s); void readQByteArray(QDataStream *s);
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void readQCursor(QDataStream *s); void readQCursor(QDataStream *s);
#endif #endif
void readQDate(QDataStream *s); void readQDate(QDataStream *s);
@ -1019,7 +1017,7 @@ void tst_QDataStream::readQByteArray(QDataStream *s)
} }
// ************************************ // ************************************
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
static QCursor qCursorData(int index) static QCursor qCursorData(int index)
{ {
switch (index) { switch (index) {
@ -1038,21 +1036,21 @@ static QCursor qCursorData(int index)
} }
#endif #endif
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QDataStream::stream_QCursor_data() void tst_QDataStream::stream_QCursor_data()
{ {
stream_data(9); stream_data(9);
} }
#endif #endif
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QDataStream::stream_QCursor() void tst_QDataStream::stream_QCursor()
{ {
STREAM_IMPL(QCursor); STREAM_IMPL(QCursor);
} }
#endif #endif
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QDataStream::writeQCursor(QDataStream *s) void tst_QDataStream::writeQCursor(QDataStream *s)
{ {
QCursor d5(qCursorData(dataIndex(QTest::currentDataTag()))); QCursor d5(qCursorData(dataIndex(QTest::currentDataTag())));
@ -1060,7 +1058,7 @@ void tst_QDataStream::writeQCursor(QDataStream *s)
} }
#endif #endif
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QDataStream::readQCursor(QDataStream *s) void tst_QDataStream::readQCursor(QDataStream *s)
{ {
QCursor test(qCursorData(dataIndex(QTest::currentDataTag()))); QCursor test(qCursorData(dataIndex(QTest::currentDataTag())));

View File

@ -31,8 +31,6 @@
#include <QtGui> #include <QtGui>
#include <QtTest/QtTest> #include <QtTest/QtTest>
#include "../../../qtest-config.h"
Q_DECLARE_METATYPE(QMetaType::Type) Q_DECLARE_METATYPE(QMetaType::Type)
class tst_QGuiMetaType: public QObject class tst_QGuiMetaType: public QObject
@ -75,14 +73,14 @@ private slots:
F(QVector4D, QVector4D) \ F(QVector4D, QVector4D) \
F(QQuaternion, QQuaternion) F(QQuaternion, QQuaternion)
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
# define FOR_EACH_GUI_METATYPE(F) \ # define FOR_EACH_GUI_METATYPE(F) \
FOR_EACH_GUI_METATYPE_BASE(F) \ FOR_EACH_GUI_METATYPE_BASE(F) \
F(QCursor, QCursor) F(QCursor, QCursor)
#else // !QTEST_NO_CURSOR #else // !QT_NO_CURSOR
# define FOR_EACH_GUI_METATYPE(F) \ # define FOR_EACH_GUI_METATYPE(F) \
FOR_EACH_GUI_METATYPE_BASE(F) FOR_EACH_GUI_METATYPE_BASE(F)
#endif // !QTEST_NO_CURSOR #endif // !QT_NO_CURSOR
namespace { namespace {
@ -131,7 +129,7 @@ template<> struct TypeComparator<QMetaType::QBitmap>
{ return v1.size() == v2.size(); } { return v1.size() == v2.size(); }
}; };
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
template<> struct TypeComparator<QMetaType::QCursor> template<> struct TypeComparator<QMetaType::QCursor>
{ {
static bool equal(const QCursor &v1, const QCursor &v2) static bool equal(const QCursor &v1, const QCursor &v2)
@ -176,7 +174,7 @@ template<> struct TestValueFactory<QMetaType::QRegion> {
template<> struct TestValueFactory<QMetaType::QBitmap> { template<> struct TestValueFactory<QMetaType::QBitmap> {
static QBitmap *create() { return new QBitmap(16, 32); } static QBitmap *create() { return new QBitmap(16, 32); }
}; };
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
template<> struct TestValueFactory<QMetaType::QCursor> { template<> struct TestValueFactory<QMetaType::QCursor> {
static QCursor *create() { return new QCursor(Qt::WaitCursor); } static QCursor *create() { return new QCursor(Qt::WaitCursor); }
}; };

View File

@ -52,8 +52,6 @@
#include "tst_qvariant_common.h" #include "tst_qvariant_common.h"
#include "../../../../qtest-config.h"
class tst_QGuiVariant : public QObject class tst_QGuiVariant : public QObject
{ {
Q_OBJECT Q_OBJECT
@ -172,7 +170,7 @@ void tst_QGuiVariant::canConvert_data()
var = QVariant::fromValue(QColor()); var = QVariant::fromValue(QColor());
QTest::newRow("Color") QTest::newRow("Color")
<< var << N << N << N << Y << Y << Y << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << Y << N << N << N << N; << var << N << N << N << Y << Y << Y << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << Y << N << N << N << N;
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
var = QVariant::fromValue(QCursor()); var = QVariant::fromValue(QCursor());
QTest::newRow("Cursor") QTest::newRow("Cursor")
<< var << N << N << N << N << N << N << Y << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N; << var << N << N << N << N << N << N << Y << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N << N;
@ -508,7 +506,7 @@ void tst_QGuiVariant::writeToReadFromDataStream_data()
QTest::newRow( "bitmap_valid" ) << QVariant::fromValue( bitmap ) << false; QTest::newRow( "bitmap_valid" ) << QVariant::fromValue( bitmap ) << false;
QTest::newRow( "brush_valid" ) << QVariant::fromValue( QBrush( Qt::red ) ) << false; QTest::newRow( "brush_valid" ) << QVariant::fromValue( QBrush( Qt::red ) ) << false;
QTest::newRow( "color_valid" ) << QVariant::fromValue( QColor( Qt::red ) ) << false; QTest::newRow( "color_valid" ) << QVariant::fromValue( QColor( Qt::red ) ) << false;
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
QTest::newRow( "cursor_valid" ) << QVariant::fromValue( QCursor( Qt::PointingHandCursor ) ) << false; QTest::newRow( "cursor_valid" ) << QVariant::fromValue( QCursor( Qt::PointingHandCursor ) ) << false;
#endif #endif
QTest::newRow( "font_valid" ) << QVariant::fromValue( QFont( "times", 12 ) ) << false; QTest::newRow( "font_valid" ) << QVariant::fromValue( QFont( "times", 12 ) ) << false;
@ -716,14 +714,14 @@ void tst_QGuiVariant::implicitConstruction()
F(Quaternion) \ F(Quaternion) \
F(PolygonF) F(PolygonF)
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
# define FOR_EACH_GUI_CLASS(F) \ # define FOR_EACH_GUI_CLASS(F) \
FOR_EACH_GUI_CLASS_BASE(F) \ FOR_EACH_GUI_CLASS_BASE(F) \
F(Cursor) F(Cursor)
#else // !QTEST_NO_CURSOR #else // !QT_NO_CURSOR
# define FOR_EACH_GUI_CLASS(F) \ # define FOR_EACH_GUI_CLASS(F) \
FOR_EACH_GUI_CLASS_BASE(F) FOR_EACH_GUI_CLASS_BASE(F)
#endif // QTEST_NO_CURSOR #endif // QT_NO_CURSOR
#define CONSTRUCT(TYPE) \ #define CONSTRUCT(TYPE) \
{ \ { \
@ -741,14 +739,14 @@ void tst_QGuiVariant::implicitConstruction()
void tst_QGuiVariant::guiVariantAtExit() void tst_QGuiVariant::guiVariantAtExit()
{ {
// crash test, it should not crash at QGuiApplication exit // crash test, it should not crash at QGuiApplication exit
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
static QVariant cursor = QCursor(); static QVariant cursor = QCursor();
#endif #endif
static QVariant point = QPoint(); static QVariant point = QPoint();
static QVariant icon = QIcon(); static QVariant icon = QIcon();
static QVariant image = QImage(); static QVariant image = QImage();
static QVariant palette = QPalette(); static QVariant palette = QPalette();
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
Q_UNUSED(cursor); Q_UNUSED(cursor);
#endif #endif
Q_UNUSED(point); Q_UNUSED(point);

View File

@ -1,40 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QTEST_CONFIG_H
#define QTEST_CONFIG_H
#include <qglobal.h>
#ifndef QTEST_NO_CURSOR
# if defined(QT_NO_CURSOR) || defined(Q_OS_WINCE) || defined(MEEGO_EDITION_HARMATTAN)
# define QTEST_NO_CURSOR
# endif
#endif // QTEST_NO_CURSOR
#endif // QTEST_CONFIG_H

View File

@ -57,8 +57,6 @@
Q_DECLARE_METATYPE(QPainterPath) Q_DECLARE_METATYPE(QPainterPath)
#include "../../../qtest-config.h"
#if defined(Q_OS_WIN) && !defined(Q_OS_WINRT) #if defined(Q_OS_WIN) && !defined(Q_OS_WINRT)
#include <windows.h> #include <windows.h>
#define Q_CHECK_PAINTEVENTS \ #define Q_CHECK_PAINTEVENTS \
@ -352,7 +350,7 @@ private slots:
void filtersChildEvents(); void filtersChildEvents();
void filtersChildEvents2(); void filtersChildEvents2();
void ensureVisible(); void ensureVisible();
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void cursor(); void cursor();
#endif #endif
//void textControlGetterSetter(); //void textControlGetterSetter();
@ -4177,7 +4175,7 @@ void tst_QGraphicsItem::ensureVisible()
QTest::qWait(25); QTest::qWait(25);
} }
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QGraphicsItem::cursor() void tst_QGraphicsItem::cursor()
{ {
QGraphicsScene scene; QGraphicsScene scene;
@ -4525,7 +4523,7 @@ protected:
case QGraphicsItem::ItemSceneHasChanged: case QGraphicsItem::ItemSceneHasChanged:
break; break;
case QGraphicsItem::ItemCursorChange: case QGraphicsItem::ItemCursorChange:
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
oldValues << cursor(); oldValues << cursor();
#endif #endif
break; break;

View File

@ -33,8 +33,6 @@
#include <private/qgraphicsproxywidget_p.h> #include <private/qgraphicsproxywidget_p.h>
#include <private/qlayoutengine_p.h> // qSmartMin functions... #include <private/qlayoutengine_p.h> // qSmartMin functions...
#include "../../../qtest-config.h"
static void sendMouseMove(QWidget *widget, const QPoint &point, Qt::MouseButton button = Qt::NoButton) static void sendMouseMove(QWidget *widget, const QPoint &point, Qt::MouseButton button = Qt::NoButton)
{ {
QMouseEvent event(QEvent::MouseMove, point, widget->mapToGlobal(point), button, button, 0); QMouseEvent event(QEvent::MouseMove, point, widget->mapToGlobal(point), button, button, 0);
@ -97,7 +95,7 @@ private slots:
void focusNextPrevChild(); void focusNextPrevChild();
void focusOutEvent_data(); void focusOutEvent_data();
void focusOutEvent(); void focusOutEvent();
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void hoverEnterLeaveEvent_data(); void hoverEnterLeaveEvent_data();
void hoverEnterLeaveEvent(); void hoverEnterLeaveEvent();
#endif #endif
@ -140,7 +138,7 @@ private slots:
void setFocus_complexTwoWidgets(); void setFocus_complexTwoWidgets();
void popup_basic(); void popup_basic();
void popup_subwidget(); void popup_subwidget();
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void changingCursor_basic(); void changingCursor_basic();
#endif #endif
void tooltip_basic(); void tooltip_basic();
@ -411,7 +409,7 @@ void tst_QGraphicsProxyWidget::setWidget()
} }
QWidget *widget = new QWidget; QWidget *widget = new QWidget;
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
widget->setCursor(Qt::IBeamCursor); widget->setCursor(Qt::IBeamCursor);
#endif #endif
widget->setPalette(QPalette(Qt::magenta)); widget->setPalette(QPalette(Qt::magenta));
@ -448,7 +446,7 @@ void tst_QGraphicsProxyWidget::setWidget()
QVERIFY(subWidget->testAttribute(Qt::WA_DontShowOnScreen)); QVERIFY(subWidget->testAttribute(Qt::WA_DontShowOnScreen));
QVERIFY(!subWidget->testAttribute(Qt::WA_QuitOnClose)); QVERIFY(!subWidget->testAttribute(Qt::WA_QuitOnClose));
QCOMPARE(proxy->acceptHoverEvents(), true); QCOMPARE(proxy->acceptHoverEvents(), true);
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
QVERIFY(proxy->hasCursor()); QVERIFY(proxy->hasCursor());
// These should match // These should match
@ -931,7 +929,7 @@ protected:
} }
}; };
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QGraphicsProxyWidget::hoverEnterLeaveEvent_data() void tst_QGraphicsProxyWidget::hoverEnterLeaveEvent_data()
{ {
QTest::addColumn<bool>("hasWidget"); QTest::addColumn<bool>("hasWidget");
@ -1519,7 +1517,7 @@ void tst_QGraphicsProxyWidget::setWidget_simple()
// Properties // Properties
// QCOMPARE(proxy.focusPolicy(), lineEdit->focusPolicy()); // QCOMPARE(proxy.focusPolicy(), lineEdit->focusPolicy());
// QCOMPARE(proxy.palette(), lineEdit->palette()); // QCOMPARE(proxy.palette(), lineEdit->palette());
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
QCOMPARE(proxy.cursor().shape(), lineEdit->cursor().shape()); QCOMPARE(proxy.cursor().shape(), lineEdit->cursor().shape());
#endif #endif
QCOMPARE(proxy.layoutDirection(), lineEdit->layoutDirection()); QCOMPARE(proxy.layoutDirection(), lineEdit->layoutDirection());
@ -2536,7 +2534,7 @@ void tst_QGraphicsProxyWidget::popup_subwidget()
QCOMPARE(popup->size(), child->size().toSize()); QCOMPARE(popup->size(), child->size().toSize());
} }
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QGraphicsProxyWidget::changingCursor_basic() void tst_QGraphicsProxyWidget::changingCursor_basic()
{ {
// Confirm that mouse events are working properly by checking that // Confirm that mouse events are working properly by checking that
@ -3642,7 +3640,7 @@ public slots:
void tst_QGraphicsProxyWidget::QTBUG_6986_sendMouseEventToAlienWidget() void tst_QGraphicsProxyWidget::QTBUG_6986_sendMouseEventToAlienWidget()
{ {
#if defined(Q_OS_MAC) || defined(Q_OS_WIN) || defined(QTEST_NO_CURSOR) #if defined(Q_OS_DARWIN) || defined(Q_OS_WIN) || defined(QT_NO_CURSOR)
QSKIP("Test case unstable on this platform"); QSKIP("Test case unstable on this platform");
#endif #endif
QGraphicsView view; QGraphicsView view;

View File

@ -54,7 +54,6 @@
#include "../../../shared/platforminputcontext.h" #include "../../../shared/platforminputcontext.h"
#include <private/qinputmethod_p.h> #include <private/qinputmethod_p.h>
#include "../../../qtest-config.h"
#include "tst_qgraphicsview.h" #include "tst_qgraphicsview.h"
Q_DECLARE_METATYPE(ExpectedValueDescription) Q_DECLARE_METATYPE(ExpectedValueDescription)
@ -195,7 +194,7 @@ private slots:
#ifndef QT_NO_WHEELEVENT #ifndef QT_NO_WHEELEVENT
void wheelEvent(); void wheelEvent();
#endif #endif
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void cursor(); void cursor();
void cursor2(); void cursor2();
#endif #endif
@ -259,7 +258,7 @@ private slots:
void QTBUG_4151_clipAndIgnore_data(); void QTBUG_4151_clipAndIgnore_data();
void QTBUG_4151_clipAndIgnore(); void QTBUG_4151_clipAndIgnore();
void QTBUG_5859_exposedRect(); void QTBUG_5859_exposedRect();
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void QTBUG_7438_cursor(); void QTBUG_7438_cursor();
#endif #endif
void hoverLeave(); void hoverLeave();
@ -686,7 +685,7 @@ void tst_QGraphicsView::dragMode_scrollHand()
for (int i = 0; i < 2; ++i) { for (int i = 0; i < 2; ++i) {
// ScrollHandDrag // ScrollHandDrag
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
Qt::CursorShape cursorShape = view.viewport()->cursor().shape(); Qt::CursorShape cursorShape = view.viewport()->cursor().shape();
#endif #endif
int horizontalScrollBarValue = view.horizontalScrollBar()->value(); int horizontalScrollBarValue = view.horizontalScrollBar()->value();
@ -705,7 +704,7 @@ void tst_QGraphicsView::dragMode_scrollHand()
QTRY_VERIFY(item->isSelected()); QTRY_VERIFY(item->isSelected());
for (int k = 0; k < 4; ++k) { for (int k = 0; k < 4; ++k) {
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
QCOMPARE(view.viewport()->cursor().shape(), Qt::ClosedHandCursor); QCOMPARE(view.viewport()->cursor().shape(), Qt::ClosedHandCursor);
#endif #endif
{ {
@ -748,7 +747,7 @@ void tst_QGraphicsView::dragMode_scrollHand()
QTRY_VERIFY(item->isSelected()); QTRY_VERIFY(item->isSelected());
QCOMPARE(view.horizontalScrollBar()->value(), horizontalScrollBarValue - 10); QCOMPARE(view.horizontalScrollBar()->value(), horizontalScrollBarValue - 10);
QCOMPARE(view.verticalScrollBar()->value(), verticalScrollBarValue - 10); QCOMPARE(view.verticalScrollBar()->value(), verticalScrollBarValue - 10);
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
QCOMPARE(view.viewport()->cursor().shape(), cursorShape); QCOMPARE(view.viewport()->cursor().shape(), cursorShape);
#endif #endif
@ -808,7 +807,7 @@ void tst_QGraphicsView::dragMode_rubberBand()
for (int i = 0; i < 2; ++i) { for (int i = 0; i < 2; ++i) {
// RubberBandDrag // RubberBandDrag
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
Qt::CursorShape cursorShape = view.viewport()->cursor().shape(); Qt::CursorShape cursorShape = view.viewport()->cursor().shape();
#endif #endif
int horizontalScrollBarValue = view.horizontalScrollBar()->value(); int horizontalScrollBarValue = view.horizontalScrollBar()->value();
@ -822,7 +821,7 @@ void tst_QGraphicsView::dragMode_rubberBand()
QApplication::sendEvent(view.viewport(), &event); QApplication::sendEvent(view.viewport(), &event);
QVERIFY(event.isAccepted()); QVERIFY(event.isAccepted());
} }
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
QCOMPARE(view.viewport()->cursor().shape(), cursorShape); QCOMPARE(view.viewport()->cursor().shape(), cursorShape);
#endif #endif
@ -870,7 +869,7 @@ void tst_QGraphicsView::dragMode_rubberBand()
} }
QCOMPARE(view.horizontalScrollBar()->value(), horizontalScrollBarValue); QCOMPARE(view.horizontalScrollBar()->value(), horizontalScrollBarValue);
QCOMPARE(view.verticalScrollBar()->value(), verticalScrollBarValue); QCOMPARE(view.verticalScrollBar()->value(), verticalScrollBarValue);
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
QCOMPARE(view.viewport()->cursor().shape(), cursorShape); QCOMPARE(view.viewport()->cursor().shape(), cursorShape);
#endif #endif
@ -2198,7 +2197,7 @@ void tst_QGraphicsView::wheelEvent()
} }
#endif // !QT_NO_WHEELEVENT #endif // !QT_NO_WHEELEVENT
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QGraphicsView::cursor() void tst_QGraphicsView::cursor()
{ {
QGraphicsScene scene; QGraphicsScene scene;
@ -2222,7 +2221,7 @@ void tst_QGraphicsView::cursor()
} }
#endif #endif
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QGraphicsView::cursor2() void tst_QGraphicsView::cursor2()
{ {
QGraphicsScene scene; QGraphicsScene scene;
@ -3717,7 +3716,7 @@ void tst_QGraphicsView::mouseTracking()
QGraphicsView view(&scene); QGraphicsView view(&scene);
QGraphicsRectItem *item = new QGraphicsRectItem(10, 10, 10, 10); QGraphicsRectItem *item = new QGraphicsRectItem(10, 10, 10, 10);
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
item->setCursor(Qt::CrossCursor); item->setCursor(Qt::CrossCursor);
#endif #endif
scene.addItem(item); scene.addItem(item);
@ -3727,7 +3726,7 @@ void tst_QGraphicsView::mouseTracking()
// Adding an item to the scene before the scene is set on the view. // Adding an item to the scene before the scene is set on the view.
QGraphicsScene scene(-10000, -10000, 20000, 20000); QGraphicsScene scene(-10000, -10000, 20000, 20000);
QGraphicsRectItem *item = new QGraphicsRectItem(10, 10, 10, 10); QGraphicsRectItem *item = new QGraphicsRectItem(10, 10, 10, 10);
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
item->setCursor(Qt::CrossCursor); item->setCursor(Qt::CrossCursor);
#endif #endif
scene.addItem(item); scene.addItem(item);
@ -3744,7 +3743,7 @@ void tst_QGraphicsView::mouseTracking()
QGraphicsView view3(&scene); QGraphicsView view3(&scene);
QGraphicsRectItem *item = new QGraphicsRectItem(10, 10, 10, 10); QGraphicsRectItem *item = new QGraphicsRectItem(10, 10, 10, 10);
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
item->setCursor(Qt::CrossCursor); item->setCursor(Qt::CrossCursor);
#endif #endif
scene.addItem(item); scene.addItem(item);
@ -4696,7 +4695,7 @@ void tst_QGraphicsView::QTBUG_5859_exposedRect()
QCOMPARE(item.lastExposedRect, scene.lastBackgroundExposedRect); QCOMPARE(item.lastExposedRect, scene.lastBackgroundExposedRect);
} }
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QGraphicsView::QTBUG_7438_cursor() void tst_QGraphicsView::QTBUG_7438_cursor()
{ {
QGraphicsScene scene; QGraphicsScene scene;

View File

@ -42,8 +42,6 @@
#include <qstylefactory.h> #include <qstylefactory.h>
#include <qscreen.h> #include <qscreen.h>
#include "../../../qtest-config.h"
typedef QList<QGraphicsItem *> QGraphicsItemList; typedef QList<QGraphicsItem *> QGraphicsItemList;
class EventSpy : public QObject class EventSpy : public QObject
@ -3182,7 +3180,7 @@ void tst_QGraphicsWidget::itemChangeEvents()
valueDuringEvents.insert(QEvent::ParentChange, QVariant::fromValue(parentItem())); valueDuringEvents.insert(QEvent::ParentChange, QVariant::fromValue(parentItem()));
break; break;
} }
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
case QEvent::CursorChange: { case QEvent::CursorChange: {
valueDuringEvents.insert(QEvent::CursorChange, int(cursor().shape())); valueDuringEvents.insert(QEvent::CursorChange, int(cursor().shape()));
break; break;
@ -3233,7 +3231,7 @@ void tst_QGraphicsWidget::itemChangeEvents()
QVERIFY(!item->isVisible()); QVERIFY(!item->isVisible());
QTRY_VERIFY(!item->valueDuringEvents.value(QEvent::Hide).toBool()); QTRY_VERIFY(!item->valueDuringEvents.value(QEvent::Hide).toBool());
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
// CursorChange should be triggered after the cursor has changed // CursorChange should be triggered after the cursor has changed
item->setCursor(Qt::PointingHandCursor); item->setCursor(Qt::PointingHandCursor);
QTRY_COMPARE(item->valueDuringEvents.value(QEvent::CursorChange).toInt(), int(item->cursor().shape())); QTRY_COMPARE(item->valueDuringEvents.value(QEvent::CursorChange).toInt(), int(item->cursor().shape()));

View File

@ -55,8 +55,6 @@
#include <qpa/qwindowsysteminterface.h> #include <qpa/qwindowsysteminterface.h>
#include <private/qhighdpiscaling_p.h> #include <private/qhighdpiscaling_p.h>
#include "../../../qtest-config.h"
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
static QWindowSystemInterface::TouchPoint touchPoint(const QTouchEvent::TouchPoint& pt) static QWindowSystemInterface::TouchPoint touchPoint(const QTouchEvent::TouchPoint& pt)
{ {
@ -2293,7 +2291,7 @@ Q_GLOBAL_STATIC(QPixmap, tst_qapp_pixmap);
Q_GLOBAL_STATIC(QFont, tst_qapp_font); Q_GLOBAL_STATIC(QFont, tst_qapp_font);
Q_GLOBAL_STATIC(QRegion, tst_qapp_region); Q_GLOBAL_STATIC(QRegion, tst_qapp_region);
Q_GLOBAL_STATIC(QFontDatabase, tst_qapp_fontDatabase); Q_GLOBAL_STATIC(QFontDatabase, tst_qapp_fontDatabase);
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
Q_GLOBAL_STATIC(QCursor, tst_qapp_cursor); Q_GLOBAL_STATIC(QCursor, tst_qapp_cursor);
#endif #endif
@ -2318,7 +2316,7 @@ void tst_QApplication::globalStaticObjectDestruction()
QVERIFY(tst_qapp_font()); QVERIFY(tst_qapp_font());
QVERIFY(tst_qapp_region()); QVERIFY(tst_qapp_region());
QVERIFY(tst_qapp_fontDatabase()); QVERIFY(tst_qapp_fontDatabase());
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
QVERIFY(tst_qapp_cursor()); QVERIFY(tst_qapp_cursor());
#endif #endif
} }

View File

@ -67,8 +67,6 @@
#include <QtGui/qwindow.h> #include <QtGui/qwindow.h>
#include <qtimer.h> #include <qtimer.h>
#include "../../../qtest-config.h"
#if defined(Q_OS_MAC) #if defined(Q_OS_MAC)
#include "tst_qwidget_mac_helpers.h" // Abstract the ObjC stuff out so not everyone must run an ObjC++ compile. #include "tst_qwidget_mac_helpers.h" // Abstract the ObjC stuff out so not everyone must run an ObjC++ compile.
#endif #endif
@ -284,7 +282,7 @@ private slots:
void deleteStyle(); void deleteStyle();
void multipleToplevelFocusCheck(); void multipleToplevelFocusCheck();
void setFocus(); void setFocus();
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void setCursor(); void setCursor();
#endif #endif
void setToolTip(); void setToolTip();
@ -353,7 +351,7 @@ private slots:
void setClearAndResizeMask(); void setClearAndResizeMask();
void maskedUpdate(); void maskedUpdate();
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void syntheticEnterLeave(); void syntheticEnterLeave();
void taskQTBUG_4055_sendSyntheticEnterLeave(); void taskQTBUG_4055_sendSyntheticEnterLeave();
void underMouse(); void underMouse();
@ -5422,7 +5420,7 @@ private:
int m_count; int m_count;
}; };
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QWidget::setCursor() void tst_QWidget::setCursor()
{ {
{ {
@ -8745,7 +8743,7 @@ void tst_QWidget::maskedUpdate()
QTRY_COMPARE(grandChild.paintedRegion, QRegion(grandChild.rect())); // Full update. QTRY_COMPARE(grandChild.paintedRegion, QRegion(grandChild.rect())); // Full update.
} }
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QWidget::syntheticEnterLeave() void tst_QWidget::syntheticEnterLeave()
{ {
if (m_platform == QStringLiteral("wayland")) if (m_platform == QStringLiteral("wayland"))
@ -8851,7 +8849,7 @@ void tst_QWidget::syntheticEnterLeave()
} }
#endif #endif
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QWidget::taskQTBUG_4055_sendSyntheticEnterLeave() void tst_QWidget::taskQTBUG_4055_sendSyntheticEnterLeave()
{ {
if (m_platform == QStringLiteral("wayland")) if (m_platform == QStringLiteral("wayland"))
@ -9068,7 +9066,7 @@ QWidgetBackingStore* backingStore(QWidget &widget)
// Tables of 5000 elements do not make sense on Windows Mobile. // Tables of 5000 elements do not make sense on Windows Mobile.
void tst_QWidget::rectOutsideCoordinatesLimit_task144779() void tst_QWidget::rectOutsideCoordinatesLimit_task144779()
{ {
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
QApplication::setOverrideCursor(Qt::BlankCursor); //keep the cursor out of screen grabs QApplication::setOverrideCursor(Qt::BlankCursor); //keep the cursor out of screen grabs
#endif #endif
QWidget main(0,Qt::FramelessWindowHint); //don't get confused by the size of the window frame QWidget main(0,Qt::FramelessWindowHint); //don't get confused by the size of the window frame
@ -9103,7 +9101,7 @@ void tst_QWidget::rectOutsideCoordinatesLimit_task144779()
QTRY_COMPARE(mainPixmap.toImage().convertToFormat(QImage::Format_RGB32), QTRY_COMPARE(mainPixmap.toImage().convertToFormat(QImage::Format_RGB32),
correct.toImage().convertToFormat(QImage::Format_RGB32)); correct.toImage().convertToFormat(QImage::Format_RGB32));
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
QApplication::restoreOverrideCursor(); QApplication::restoreOverrideCursor();
#endif #endif
} }
@ -10050,7 +10048,7 @@ void tst_QWidget::destroyedSignal()
} }
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QWidget::underMouse() void tst_QWidget::underMouse()
{ {
// Move the mouse cursor to a safe location // Move the mouse cursor to a safe location
@ -10334,7 +10332,7 @@ void tst_QWidget::taskQTBUG_27643_enterEvents()
// Must only register only single enter on modal dialog's button after all said and done // Must only register only single enter on modal dialog's button after all said and done
QCOMPARE(dialog.enters, 1); QCOMPARE(dialog.enters, 1);
} }
#endif // QTEST_NO_CURSOR #endif // QT_NO_CURSOR
class KeyboardWidget : public QWidget class KeyboardWidget : public QWidget
{ {

View File

@ -34,8 +34,6 @@
#include <private/qstylesheetstyle_p.h> #include <private/qstylesheetstyle_p.h>
#include "../../../qtest-config.h"
static inline void centerOnScreen(QWidget *w) static inline void centerOnScreen(QWidget *w)
{ {
const QPoint offset = QPoint(w->width() / 2, w->height() / 2); const QPoint offset = QPoint(w->width() / 2, w->height() / 2);
@ -76,7 +74,7 @@ private slots:
void onWidgetDestroyed(); void onWidgetDestroyed();
void fontPrecedence(); void fontPrecedence();
void focusColors(); void focusColors();
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void hoverColors(); void hoverColors();
#endif #endif
void background(); void background();
@ -887,7 +885,7 @@ void tst_QStyleSheetStyle::focusColors()
} }
} }
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QStyleSheetStyle::hoverColors() void tst_QStyleSheetStyle::hoverColors()
{ {
#ifdef Q_OS_OSX #ifdef Q_OS_OSX

View File

@ -70,8 +70,6 @@
#include "../../../shared/platforminputcontext.h" #include "../../../shared/platforminputcontext.h"
#include <private/qinputmethod_p.h> #include <private/qinputmethod_p.h>
#include "../../../qtest-config.h"
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QPainter; class QPainter;
QT_END_NAMESPACE QT_END_NAMESPACE
@ -252,7 +250,7 @@ private slots:
void noTextEditedOnClear(); void noTextEditedOnClear();
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void cursor(); void cursor();
#endif #endif
@ -3484,7 +3482,7 @@ void tst_QLineEdit::textMargin()
QTRY_COMPARE(testWidget.cursorPosition(), cursorPosition); QTRY_COMPARE(testWidget.cursorPosition(), cursorPosition);
} }
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QLineEdit::cursor() void tst_QLineEdit::cursor()
{ {
QLineEdit *testWidget = ensureTestWidget(); QLineEdit *testWidget = ensureTestWidget();

View File

@ -45,8 +45,6 @@
#include <private/qmainwindowlayout_p.h> #include <private/qmainwindowlayout_p.h>
#include <private/qdockarealayout_p.h> #include <private/qdockarealayout_p.h>
#include "../../../qtest-config.h"
static uchar restoreData41[] = { 0x0, 0x0, 0x0, 0xff, 0x0, 0x0, 0x0, 0x0, 0xfc, 0x0, 0x0, 0x0, 0x0, 0xfd, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x64, 0x0, 0x0, 0x1, 0x19, 0xfc, 0x2, 0x0, 0x0, 0x0, 0x4, 0xfb, 0x0, 0x0, 0x0, 0xc, 0x0, 0x64, 0x0, 0x6f, 0x0, 0x63, 0x0, 0x6b, 0x0, 0x20, 0x0, 0x30, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x45, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0xff, 0xff, 0xfb, 0x0, 0x0, 0x0, 0xc, 0x0, 0x64, 0x0, 0x6f, 0x0, 0x63, 0x0, 0x6b, 0x0, 0x20, 0x0, 0x34, 0x1, 0x0, 0x0, 0x0, 0x49, 0x0, 0x0, 0x0, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0xff, 0xff, 0xfb, 0x0, 0x0, 0x0, 0xc, 0x0, 0x64, 0x0, 0x6f, 0x0, 0x63, 0x0, 0x6b, 0x0, 0x20, 0x0, 0x38, 0x1, 0x0, 0x0, 0x0, 0x8d, 0x0, 0x0, 0x0, 0x43, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0xff, 0xff, 0xfb, 0x0, 0x0, 0x0, 0xe, 0x0, 0x64, 0x0, 0x6f, 0x0, 0x63, 0x0, 0x6b, 0x0, 0x20, 0x0, 0x31, 0x0, 0x32, 0x1, 0x0, 0x0, 0x0, 0xd4, 0x0, 0x0, 0x0, 0x45, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0xff, 0xff, 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 0x0, 0x4, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x8, 0xfc, 0x0, 0x0, 0x0, 0x0};
@ -131,7 +129,7 @@ private slots:
void contentsMargins_data(); void contentsMargins_data();
void contentsMargins(); void contentsMargins();
void isSeparator(); void isSeparator();
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void setCursor(); void setCursor();
#endif #endif
void addToolbarAfterShow(); void addToolbarAfterShow();
@ -1725,7 +1723,7 @@ class MainWindow : public QMainWindow {
using QMainWindow::event; using QMainWindow::event;
}; };
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QMainWindow::setCursor() void tst_QMainWindow::setCursor()
{ {
MainWindow mw; MainWindow mw;

View File

@ -48,8 +48,6 @@
#include <QScreen> #include <QScreen>
#include <QSizeGrip> #include <QSizeGrip>
#include "../../../qtest-config.h"
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
#if !defined(Q_DEAD_CODE_FROM_QT4_WIN) #if !defined(Q_DEAD_CODE_FROM_QT4_WIN)
extern bool qt_tab_all_widgets(); extern bool qt_tab_all_widgets();
@ -161,7 +159,7 @@ private slots:
void showShaded(); void showShaded();
void showNormal_data(); void showNormal_data();
void showNormal(); void showNormal();
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void setOpaqueResizeAndMove_data(); void setOpaqueResizeAndMove_data();
void setOpaqueResizeAndMove(); void setOpaqueResizeAndMove();
#endif #endif
@ -666,7 +664,7 @@ private:
int _count; int _count;
}; };
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QMdiSubWindow::setOpaqueResizeAndMove_data() void tst_QMdiSubWindow::setOpaqueResizeAndMove_data()
{ {
QTest::addColumn<bool>("opaqueMode"); QTest::addColumn<bool>("opaqueMode");

View File

@ -1119,7 +1119,7 @@ void tst_QMenuBar::check_menuPosition()
menu.close(); menu.close();
} }
# ifndef QTEST_NO_CURSOR # ifndef QT_NO_CURSOR
// QTBUG-28031: Click at bottom-right corner. // QTBUG-28031: Click at bottom-right corner.
{ {
w.move(400, 200); w.move(400, 200);
@ -1133,7 +1133,7 @@ void tst_QMenuBar::check_menuPosition()
QCOMPARE(menu.geometry().right() - 1, globalPos.x()); QCOMPARE(menu.geometry().right() - 1, globalPos.x());
menu.close(); menu.close();
} }
# endif // QTEST_NO_CURSOR # endif // QT_NO_CURSOR
} }
#endif #endif

View File

@ -48,8 +48,6 @@
#include "qplaintextedit.h" #include "qplaintextedit.h"
#include "../../../shared/platformclipboard.h" #include "../../../shared/platformclipboard.h"
#include "../../../qtest-config.h"
//Used in copyAvailable //Used in copyAvailable
typedef QPair<Qt::Key, Qt::KeyboardModifier> keyPairType; typedef QPair<Qt::Key, Qt::KeyboardModifier> keyPairType;
typedef QList<keyPairType> pairListType; typedef QList<keyPairType> pairListType;
@ -103,7 +101,7 @@ private slots:
void shiftDownInLineLastShouldSelectToEnd(); void shiftDownInLineLastShouldSelectToEnd();
void undoRedoShouldRepositionTextEditCursor(); void undoRedoShouldRepositionTextEditCursor();
void lineWrapModes(); void lineWrapModes();
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void mouseCursorShape(); void mouseCursorShape();
#endif #endif
void implicitClear(); void implicitClear();
@ -880,7 +878,7 @@ void tst_QPlainTextEdit::lineWrapModes()
delete window; delete window;
} }
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QPlainTextEdit::mouseCursorShape() void tst_QPlainTextEdit::mouseCursorShape()
{ {
// always show an IBeamCursor, see change 170146 // always show an IBeamCursor, see change 170146

View File

@ -55,8 +55,6 @@
#include "../../../shared/platforminputcontext.h" #include "../../../shared/platforminputcontext.h"
#include <private/qinputmethod_p.h> #include <private/qinputmethod_p.h>
#include "../../../qtest-config.h"
//Used in copyAvailable //Used in copyAvailable
typedef QPair<Qt::Key, Qt::KeyboardModifier> keyPairType; typedef QPair<Qt::Key, Qt::KeyboardModifier> keyPairType;
typedef QList<keyPairType> pairListType; typedef QList<keyPairType> pairListType;
@ -125,7 +123,7 @@ private slots:
void shiftDownInLineLastShouldSelectToEnd(); void shiftDownInLineLastShouldSelectToEnd();
void undoRedoShouldRepositionTextEditCursor(); void undoRedoShouldRepositionTextEditCursor();
void lineWrapModes(); void lineWrapModes();
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void mouseCursorShape(); void mouseCursorShape();
#endif #endif
void implicitClear(); void implicitClear();
@ -1219,7 +1217,7 @@ void tst_QTextEdit::lineWrapModes()
QCOMPARE(ed->document()->pageSize().width(), qreal(1000)); QCOMPARE(ed->document()->pageSize().width(), qreal(1000));
} }
#ifndef QTEST_NO_CURSOR #ifndef QT_NO_CURSOR
void tst_QTextEdit::mouseCursorShape() void tst_QTextEdit::mouseCursorShape()
{ {
// always show an IBeamCursor, see change 170146 // always show an IBeamCursor, see change 170146