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:
parent
cd06d901af
commit
c736497483
@ -35,8 +35,6 @@
|
||||
#include <QtGui/QPainter>
|
||||
#include <QtGui/QPen>
|
||||
|
||||
#include "../../../qtest-config.h"
|
||||
|
||||
class tst_QDataStream : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@ -65,7 +63,7 @@ private slots:
|
||||
void stream_QByteArray_data();
|
||||
void stream_QByteArray();
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void stream_QCursor_data();
|
||||
void stream_QCursor();
|
||||
#endif
|
||||
@ -189,7 +187,7 @@ private:
|
||||
void writeQBrush(QDataStream *s);
|
||||
void writeQColor(QDataStream *s);
|
||||
void writeQByteArray(QDataStream *s);
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void writeQCursor(QDataStream *s);
|
||||
#endif
|
||||
void writeQWaitCursor(QDataStream *s);
|
||||
@ -218,7 +216,7 @@ private:
|
||||
void readQBrush(QDataStream *s);
|
||||
void readQColor(QDataStream *s);
|
||||
void readQByteArray(QDataStream *s);
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void readQCursor(QDataStream *s);
|
||||
#endif
|
||||
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)
|
||||
{
|
||||
switch (index) {
|
||||
@ -1038,21 +1036,21 @@ static QCursor qCursorData(int index)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QDataStream::stream_QCursor_data()
|
||||
{
|
||||
stream_data(9);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QDataStream::stream_QCursor()
|
||||
{
|
||||
STREAM_IMPL(QCursor);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QDataStream::writeQCursor(QDataStream *s)
|
||||
{
|
||||
QCursor d5(qCursorData(dataIndex(QTest::currentDataTag())));
|
||||
@ -1060,7 +1058,7 @@ void tst_QDataStream::writeQCursor(QDataStream *s)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QDataStream::readQCursor(QDataStream *s)
|
||||
{
|
||||
QCursor test(qCursorData(dataIndex(QTest::currentDataTag())));
|
||||
|
@ -31,8 +31,6 @@
|
||||
#include <QtGui>
|
||||
#include <QtTest/QtTest>
|
||||
|
||||
#include "../../../qtest-config.h"
|
||||
|
||||
Q_DECLARE_METATYPE(QMetaType::Type)
|
||||
|
||||
class tst_QGuiMetaType: public QObject
|
||||
@ -75,14 +73,14 @@ private slots:
|
||||
F(QVector4D, QVector4D) \
|
||||
F(QQuaternion, QQuaternion)
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
# define FOR_EACH_GUI_METATYPE(F) \
|
||||
FOR_EACH_GUI_METATYPE_BASE(F) \
|
||||
F(QCursor, QCursor)
|
||||
#else // !QTEST_NO_CURSOR
|
||||
#else // !QT_NO_CURSOR
|
||||
# define FOR_EACH_GUI_METATYPE(F) \
|
||||
FOR_EACH_GUI_METATYPE_BASE(F)
|
||||
#endif // !QTEST_NO_CURSOR
|
||||
#endif // !QT_NO_CURSOR
|
||||
|
||||
|
||||
namespace {
|
||||
@ -131,7 +129,7 @@ template<> struct TypeComparator<QMetaType::QBitmap>
|
||||
{ return v1.size() == v2.size(); }
|
||||
};
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
template<> struct TypeComparator<QMetaType::QCursor>
|
||||
{
|
||||
static bool equal(const QCursor &v1, const QCursor &v2)
|
||||
@ -176,7 +174,7 @@ template<> struct TestValueFactory<QMetaType::QRegion> {
|
||||
template<> struct TestValueFactory<QMetaType::QBitmap> {
|
||||
static QBitmap *create() { return new QBitmap(16, 32); }
|
||||
};
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
template<> struct TestValueFactory<QMetaType::QCursor> {
|
||||
static QCursor *create() { return new QCursor(Qt::WaitCursor); }
|
||||
};
|
||||
|
@ -52,8 +52,6 @@
|
||||
|
||||
#include "tst_qvariant_common.h"
|
||||
|
||||
#include "../../../../qtest-config.h"
|
||||
|
||||
class tst_QGuiVariant : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@ -172,7 +170,7 @@ void tst_QGuiVariant::canConvert_data()
|
||||
var = QVariant::fromValue(QColor());
|
||||
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;
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
var = QVariant::fromValue(QCursor());
|
||||
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;
|
||||
@ -508,7 +506,7 @@ void tst_QGuiVariant::writeToReadFromDataStream_data()
|
||||
QTest::newRow( "bitmap_valid" ) << QVariant::fromValue( bitmap ) << false;
|
||||
QTest::newRow( "brush_valid" ) << QVariant::fromValue( QBrush( 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;
|
||||
#endif
|
||||
QTest::newRow( "font_valid" ) << QVariant::fromValue( QFont( "times", 12 ) ) << false;
|
||||
@ -716,14 +714,14 @@ void tst_QGuiVariant::implicitConstruction()
|
||||
F(Quaternion) \
|
||||
F(PolygonF)
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
# define FOR_EACH_GUI_CLASS(F) \
|
||||
FOR_EACH_GUI_CLASS_BASE(F) \
|
||||
F(Cursor)
|
||||
#else // !QTEST_NO_CURSOR
|
||||
#else // !QT_NO_CURSOR
|
||||
# define FOR_EACH_GUI_CLASS(F) \
|
||||
FOR_EACH_GUI_CLASS_BASE(F)
|
||||
#endif // QTEST_NO_CURSOR
|
||||
#endif // QT_NO_CURSOR
|
||||
|
||||
#define CONSTRUCT(TYPE) \
|
||||
{ \
|
||||
@ -741,14 +739,14 @@ void tst_QGuiVariant::implicitConstruction()
|
||||
void tst_QGuiVariant::guiVariantAtExit()
|
||||
{
|
||||
// crash test, it should not crash at QGuiApplication exit
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
static QVariant cursor = QCursor();
|
||||
#endif
|
||||
static QVariant point = QPoint();
|
||||
static QVariant icon = QIcon();
|
||||
static QVariant image = QImage();
|
||||
static QVariant palette = QPalette();
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
Q_UNUSED(cursor);
|
||||
#endif
|
||||
Q_UNUSED(point);
|
||||
|
@ -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
|
@ -57,8 +57,6 @@
|
||||
|
||||
Q_DECLARE_METATYPE(QPainterPath)
|
||||
|
||||
#include "../../../qtest-config.h"
|
||||
|
||||
#if defined(Q_OS_WIN) && !defined(Q_OS_WINRT)
|
||||
#include <windows.h>
|
||||
#define Q_CHECK_PAINTEVENTS \
|
||||
@ -352,7 +350,7 @@ private slots:
|
||||
void filtersChildEvents();
|
||||
void filtersChildEvents2();
|
||||
void ensureVisible();
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void cursor();
|
||||
#endif
|
||||
//void textControlGetterSetter();
|
||||
@ -4177,7 +4175,7 @@ void tst_QGraphicsItem::ensureVisible()
|
||||
QTest::qWait(25);
|
||||
}
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QGraphicsItem::cursor()
|
||||
{
|
||||
QGraphicsScene scene;
|
||||
@ -4525,7 +4523,7 @@ protected:
|
||||
case QGraphicsItem::ItemSceneHasChanged:
|
||||
break;
|
||||
case QGraphicsItem::ItemCursorChange:
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
oldValues << cursor();
|
||||
#endif
|
||||
break;
|
||||
|
@ -33,8 +33,6 @@
|
||||
#include <private/qgraphicsproxywidget_p.h>
|
||||
#include <private/qlayoutengine_p.h> // qSmartMin functions...
|
||||
|
||||
#include "../../../qtest-config.h"
|
||||
|
||||
static void sendMouseMove(QWidget *widget, const QPoint &point, Qt::MouseButton button = Qt::NoButton)
|
||||
{
|
||||
QMouseEvent event(QEvent::MouseMove, point, widget->mapToGlobal(point), button, button, 0);
|
||||
@ -97,7 +95,7 @@ private slots:
|
||||
void focusNextPrevChild();
|
||||
void focusOutEvent_data();
|
||||
void focusOutEvent();
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void hoverEnterLeaveEvent_data();
|
||||
void hoverEnterLeaveEvent();
|
||||
#endif
|
||||
@ -140,7 +138,7 @@ private slots:
|
||||
void setFocus_complexTwoWidgets();
|
||||
void popup_basic();
|
||||
void popup_subwidget();
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void changingCursor_basic();
|
||||
#endif
|
||||
void tooltip_basic();
|
||||
@ -411,7 +409,7 @@ void tst_QGraphicsProxyWidget::setWidget()
|
||||
}
|
||||
|
||||
QWidget *widget = new QWidget;
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
widget->setCursor(Qt::IBeamCursor);
|
||||
#endif
|
||||
widget->setPalette(QPalette(Qt::magenta));
|
||||
@ -448,7 +446,7 @@ void tst_QGraphicsProxyWidget::setWidget()
|
||||
QVERIFY(subWidget->testAttribute(Qt::WA_DontShowOnScreen));
|
||||
QVERIFY(!subWidget->testAttribute(Qt::WA_QuitOnClose));
|
||||
QCOMPARE(proxy->acceptHoverEvents(), true);
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
QVERIFY(proxy->hasCursor());
|
||||
|
||||
// These should match
|
||||
@ -931,7 +929,7 @@ protected:
|
||||
}
|
||||
};
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QGraphicsProxyWidget::hoverEnterLeaveEvent_data()
|
||||
{
|
||||
QTest::addColumn<bool>("hasWidget");
|
||||
@ -1519,7 +1517,7 @@ void tst_QGraphicsProxyWidget::setWidget_simple()
|
||||
// Properties
|
||||
// QCOMPARE(proxy.focusPolicy(), lineEdit->focusPolicy());
|
||||
// QCOMPARE(proxy.palette(), lineEdit->palette());
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
QCOMPARE(proxy.cursor().shape(), lineEdit->cursor().shape());
|
||||
#endif
|
||||
QCOMPARE(proxy.layoutDirection(), lineEdit->layoutDirection());
|
||||
@ -2536,7 +2534,7 @@ void tst_QGraphicsProxyWidget::popup_subwidget()
|
||||
QCOMPARE(popup->size(), child->size().toSize());
|
||||
}
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QGraphicsProxyWidget::changingCursor_basic()
|
||||
{
|
||||
// Confirm that mouse events are working properly by checking that
|
||||
@ -3642,7 +3640,7 @@ public slots:
|
||||
|
||||
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");
|
||||
#endif
|
||||
QGraphicsView view;
|
||||
|
@ -54,7 +54,6 @@
|
||||
#include "../../../shared/platforminputcontext.h"
|
||||
#include <private/qinputmethod_p.h>
|
||||
|
||||
#include "../../../qtest-config.h"
|
||||
#include "tst_qgraphicsview.h"
|
||||
|
||||
Q_DECLARE_METATYPE(ExpectedValueDescription)
|
||||
@ -195,7 +194,7 @@ private slots:
|
||||
#ifndef QT_NO_WHEELEVENT
|
||||
void wheelEvent();
|
||||
#endif
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void cursor();
|
||||
void cursor2();
|
||||
#endif
|
||||
@ -259,7 +258,7 @@ private slots:
|
||||
void QTBUG_4151_clipAndIgnore_data();
|
||||
void QTBUG_4151_clipAndIgnore();
|
||||
void QTBUG_5859_exposedRect();
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void QTBUG_7438_cursor();
|
||||
#endif
|
||||
void hoverLeave();
|
||||
@ -686,7 +685,7 @@ void tst_QGraphicsView::dragMode_scrollHand()
|
||||
|
||||
for (int i = 0; i < 2; ++i) {
|
||||
// ScrollHandDrag
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
Qt::CursorShape cursorShape = view.viewport()->cursor().shape();
|
||||
#endif
|
||||
int horizontalScrollBarValue = view.horizontalScrollBar()->value();
|
||||
@ -705,7 +704,7 @@ void tst_QGraphicsView::dragMode_scrollHand()
|
||||
QTRY_VERIFY(item->isSelected());
|
||||
|
||||
for (int k = 0; k < 4; ++k) {
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
QCOMPARE(view.viewport()->cursor().shape(), Qt::ClosedHandCursor);
|
||||
#endif
|
||||
{
|
||||
@ -748,7 +747,7 @@ void tst_QGraphicsView::dragMode_scrollHand()
|
||||
QTRY_VERIFY(item->isSelected());
|
||||
QCOMPARE(view.horizontalScrollBar()->value(), horizontalScrollBarValue - 10);
|
||||
QCOMPARE(view.verticalScrollBar()->value(), verticalScrollBarValue - 10);
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
QCOMPARE(view.viewport()->cursor().shape(), cursorShape);
|
||||
#endif
|
||||
|
||||
@ -808,7 +807,7 @@ void tst_QGraphicsView::dragMode_rubberBand()
|
||||
|
||||
for (int i = 0; i < 2; ++i) {
|
||||
// RubberBandDrag
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
Qt::CursorShape cursorShape = view.viewport()->cursor().shape();
|
||||
#endif
|
||||
int horizontalScrollBarValue = view.horizontalScrollBar()->value();
|
||||
@ -822,7 +821,7 @@ void tst_QGraphicsView::dragMode_rubberBand()
|
||||
QApplication::sendEvent(view.viewport(), &event);
|
||||
QVERIFY(event.isAccepted());
|
||||
}
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
QCOMPARE(view.viewport()->cursor().shape(), cursorShape);
|
||||
#endif
|
||||
|
||||
@ -870,7 +869,7 @@ void tst_QGraphicsView::dragMode_rubberBand()
|
||||
}
|
||||
QCOMPARE(view.horizontalScrollBar()->value(), horizontalScrollBarValue);
|
||||
QCOMPARE(view.verticalScrollBar()->value(), verticalScrollBarValue);
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
QCOMPARE(view.viewport()->cursor().shape(), cursorShape);
|
||||
#endif
|
||||
|
||||
@ -2198,7 +2197,7 @@ void tst_QGraphicsView::wheelEvent()
|
||||
}
|
||||
#endif // !QT_NO_WHEELEVENT
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QGraphicsView::cursor()
|
||||
{
|
||||
QGraphicsScene scene;
|
||||
@ -2222,7 +2221,7 @@ void tst_QGraphicsView::cursor()
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QGraphicsView::cursor2()
|
||||
{
|
||||
QGraphicsScene scene;
|
||||
@ -3717,7 +3716,7 @@ void tst_QGraphicsView::mouseTracking()
|
||||
QGraphicsView view(&scene);
|
||||
|
||||
QGraphicsRectItem *item = new QGraphicsRectItem(10, 10, 10, 10);
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
item->setCursor(Qt::CrossCursor);
|
||||
#endif
|
||||
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.
|
||||
QGraphicsScene scene(-10000, -10000, 20000, 20000);
|
||||
QGraphicsRectItem *item = new QGraphicsRectItem(10, 10, 10, 10);
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
item->setCursor(Qt::CrossCursor);
|
||||
#endif
|
||||
scene.addItem(item);
|
||||
@ -3744,7 +3743,7 @@ void tst_QGraphicsView::mouseTracking()
|
||||
QGraphicsView view3(&scene);
|
||||
|
||||
QGraphicsRectItem *item = new QGraphicsRectItem(10, 10, 10, 10);
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
item->setCursor(Qt::CrossCursor);
|
||||
#endif
|
||||
scene.addItem(item);
|
||||
@ -4696,7 +4695,7 @@ void tst_QGraphicsView::QTBUG_5859_exposedRect()
|
||||
QCOMPARE(item.lastExposedRect, scene.lastBackgroundExposedRect);
|
||||
}
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QGraphicsView::QTBUG_7438_cursor()
|
||||
{
|
||||
QGraphicsScene scene;
|
||||
|
@ -42,8 +42,6 @@
|
||||
#include <qstylefactory.h>
|
||||
#include <qscreen.h>
|
||||
|
||||
#include "../../../qtest-config.h"
|
||||
|
||||
typedef QList<QGraphicsItem *> QGraphicsItemList;
|
||||
|
||||
class EventSpy : public QObject
|
||||
@ -3182,7 +3180,7 @@ void tst_QGraphicsWidget::itemChangeEvents()
|
||||
valueDuringEvents.insert(QEvent::ParentChange, QVariant::fromValue(parentItem()));
|
||||
break;
|
||||
}
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
case QEvent::CursorChange: {
|
||||
valueDuringEvents.insert(QEvent::CursorChange, int(cursor().shape()));
|
||||
break;
|
||||
@ -3233,7 +3231,7 @@ void tst_QGraphicsWidget::itemChangeEvents()
|
||||
QVERIFY(!item->isVisible());
|
||||
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
|
||||
item->setCursor(Qt::PointingHandCursor);
|
||||
QTRY_COMPARE(item->valueDuringEvents.value(QEvent::CursorChange).toInt(), int(item->cursor().shape()));
|
||||
|
@ -55,8 +55,6 @@
|
||||
#include <qpa/qwindowsysteminterface.h>
|
||||
#include <private/qhighdpiscaling_p.h>
|
||||
|
||||
#include "../../../qtest-config.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
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(QRegion, tst_qapp_region);
|
||||
Q_GLOBAL_STATIC(QFontDatabase, tst_qapp_fontDatabase);
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
Q_GLOBAL_STATIC(QCursor, tst_qapp_cursor);
|
||||
#endif
|
||||
|
||||
@ -2318,7 +2316,7 @@ void tst_QApplication::globalStaticObjectDestruction()
|
||||
QVERIFY(tst_qapp_font());
|
||||
QVERIFY(tst_qapp_region());
|
||||
QVERIFY(tst_qapp_fontDatabase());
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
QVERIFY(tst_qapp_cursor());
|
||||
#endif
|
||||
}
|
||||
|
@ -67,8 +67,6 @@
|
||||
#include <QtGui/qwindow.h>
|
||||
#include <qtimer.h>
|
||||
|
||||
#include "../../../qtest-config.h"
|
||||
|
||||
#if defined(Q_OS_MAC)
|
||||
#include "tst_qwidget_mac_helpers.h" // Abstract the ObjC stuff out so not everyone must run an ObjC++ compile.
|
||||
#endif
|
||||
@ -284,7 +282,7 @@ private slots:
|
||||
void deleteStyle();
|
||||
void multipleToplevelFocusCheck();
|
||||
void setFocus();
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void setCursor();
|
||||
#endif
|
||||
void setToolTip();
|
||||
@ -353,7 +351,7 @@ private slots:
|
||||
|
||||
void setClearAndResizeMask();
|
||||
void maskedUpdate();
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void syntheticEnterLeave();
|
||||
void taskQTBUG_4055_sendSyntheticEnterLeave();
|
||||
void underMouse();
|
||||
@ -5422,7 +5420,7 @@ private:
|
||||
int m_count;
|
||||
};
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QWidget::setCursor()
|
||||
{
|
||||
{
|
||||
@ -8745,7 +8743,7 @@ void tst_QWidget::maskedUpdate()
|
||||
QTRY_COMPARE(grandChild.paintedRegion, QRegion(grandChild.rect())); // Full update.
|
||||
}
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QWidget::syntheticEnterLeave()
|
||||
{
|
||||
if (m_platform == QStringLiteral("wayland"))
|
||||
@ -8851,7 +8849,7 @@ void tst_QWidget::syntheticEnterLeave()
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QWidget::taskQTBUG_4055_sendSyntheticEnterLeave()
|
||||
{
|
||||
if (m_platform == QStringLiteral("wayland"))
|
||||
@ -9068,7 +9066,7 @@ QWidgetBackingStore* backingStore(QWidget &widget)
|
||||
// Tables of 5000 elements do not make sense on Windows Mobile.
|
||||
void tst_QWidget::rectOutsideCoordinatesLimit_task144779()
|
||||
{
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
QApplication::setOverrideCursor(Qt::BlankCursor); //keep the cursor out of screen grabs
|
||||
#endif
|
||||
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),
|
||||
correct.toImage().convertToFormat(QImage::Format_RGB32));
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
QApplication::restoreOverrideCursor();
|
||||
#endif
|
||||
}
|
||||
@ -10050,7 +10048,7 @@ void tst_QWidget::destroyedSignal()
|
||||
|
||||
}
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QWidget::underMouse()
|
||||
{
|
||||
// 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
|
||||
QCOMPARE(dialog.enters, 1);
|
||||
}
|
||||
#endif // QTEST_NO_CURSOR
|
||||
#endif // QT_NO_CURSOR
|
||||
|
||||
class KeyboardWidget : public QWidget
|
||||
{
|
||||
|
@ -34,8 +34,6 @@
|
||||
|
||||
#include <private/qstylesheetstyle_p.h>
|
||||
|
||||
#include "../../../qtest-config.h"
|
||||
|
||||
static inline void centerOnScreen(QWidget *w)
|
||||
{
|
||||
const QPoint offset = QPoint(w->width() / 2, w->height() / 2);
|
||||
@ -76,7 +74,7 @@ private slots:
|
||||
void onWidgetDestroyed();
|
||||
void fontPrecedence();
|
||||
void focusColors();
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void hoverColors();
|
||||
#endif
|
||||
void background();
|
||||
@ -887,7 +885,7 @@ void tst_QStyleSheetStyle::focusColors()
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QStyleSheetStyle::hoverColors()
|
||||
{
|
||||
#ifdef Q_OS_OSX
|
||||
|
@ -70,8 +70,6 @@
|
||||
#include "../../../shared/platforminputcontext.h"
|
||||
#include <private/qinputmethod_p.h>
|
||||
|
||||
#include "../../../qtest-config.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QPainter;
|
||||
QT_END_NAMESPACE
|
||||
@ -252,7 +250,7 @@ private slots:
|
||||
|
||||
void noTextEditedOnClear();
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void cursor();
|
||||
#endif
|
||||
|
||||
@ -3484,7 +3482,7 @@ void tst_QLineEdit::textMargin()
|
||||
QTRY_COMPARE(testWidget.cursorPosition(), cursorPosition);
|
||||
}
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QLineEdit::cursor()
|
||||
{
|
||||
QLineEdit *testWidget = ensureTestWidget();
|
||||
|
@ -45,8 +45,6 @@
|
||||
#include <private/qmainwindowlayout_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, 0x0, 0x0, 0x0, 0x1, 0x0,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0x0, 0x0, 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();
|
||||
void isSeparator();
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void setCursor();
|
||||
#endif
|
||||
void addToolbarAfterShow();
|
||||
@ -1725,7 +1723,7 @@ class MainWindow : public QMainWindow {
|
||||
using QMainWindow::event;
|
||||
};
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QMainWindow::setCursor()
|
||||
{
|
||||
MainWindow mw;
|
||||
|
@ -48,8 +48,6 @@
|
||||
#include <QScreen>
|
||||
#include <QSizeGrip>
|
||||
|
||||
#include "../../../qtest-config.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
#if !defined(Q_DEAD_CODE_FROM_QT4_WIN)
|
||||
extern bool qt_tab_all_widgets();
|
||||
@ -161,7 +159,7 @@ private slots:
|
||||
void showShaded();
|
||||
void showNormal_data();
|
||||
void showNormal();
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void setOpaqueResizeAndMove_data();
|
||||
void setOpaqueResizeAndMove();
|
||||
#endif
|
||||
@ -666,7 +664,7 @@ private:
|
||||
int _count;
|
||||
};
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QMdiSubWindow::setOpaqueResizeAndMove_data()
|
||||
{
|
||||
QTest::addColumn<bool>("opaqueMode");
|
||||
|
@ -1119,7 +1119,7 @@ void tst_QMenuBar::check_menuPosition()
|
||||
menu.close();
|
||||
}
|
||||
|
||||
# ifndef QTEST_NO_CURSOR
|
||||
# ifndef QT_NO_CURSOR
|
||||
// QTBUG-28031: Click at bottom-right corner.
|
||||
{
|
||||
w.move(400, 200);
|
||||
@ -1133,7 +1133,7 @@ void tst_QMenuBar::check_menuPosition()
|
||||
QCOMPARE(menu.geometry().right() - 1, globalPos.x());
|
||||
menu.close();
|
||||
}
|
||||
# endif // QTEST_NO_CURSOR
|
||||
# endif // QT_NO_CURSOR
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -48,8 +48,6 @@
|
||||
#include "qplaintextedit.h"
|
||||
#include "../../../shared/platformclipboard.h"
|
||||
|
||||
#include "../../../qtest-config.h"
|
||||
|
||||
//Used in copyAvailable
|
||||
typedef QPair<Qt::Key, Qt::KeyboardModifier> keyPairType;
|
||||
typedef QList<keyPairType> pairListType;
|
||||
@ -103,7 +101,7 @@ private slots:
|
||||
void shiftDownInLineLastShouldSelectToEnd();
|
||||
void undoRedoShouldRepositionTextEditCursor();
|
||||
void lineWrapModes();
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void mouseCursorShape();
|
||||
#endif
|
||||
void implicitClear();
|
||||
@ -880,7 +878,7 @@ void tst_QPlainTextEdit::lineWrapModes()
|
||||
delete window;
|
||||
}
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QPlainTextEdit::mouseCursorShape()
|
||||
{
|
||||
// always show an IBeamCursor, see change 170146
|
||||
|
@ -55,8 +55,6 @@
|
||||
#include "../../../shared/platforminputcontext.h"
|
||||
#include <private/qinputmethod_p.h>
|
||||
|
||||
#include "../../../qtest-config.h"
|
||||
|
||||
//Used in copyAvailable
|
||||
typedef QPair<Qt::Key, Qt::KeyboardModifier> keyPairType;
|
||||
typedef QList<keyPairType> pairListType;
|
||||
@ -125,7 +123,7 @@ private slots:
|
||||
void shiftDownInLineLastShouldSelectToEnd();
|
||||
void undoRedoShouldRepositionTextEditCursor();
|
||||
void lineWrapModes();
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void mouseCursorShape();
|
||||
#endif
|
||||
void implicitClear();
|
||||
@ -1219,7 +1217,7 @@ void tst_QTextEdit::lineWrapModes()
|
||||
QCOMPARE(ed->document()->pageSize().width(), qreal(1000));
|
||||
}
|
||||
|
||||
#ifndef QTEST_NO_CURSOR
|
||||
#ifndef QT_NO_CURSOR
|
||||
void tst_QTextEdit::mouseCursorShape()
|
||||
{
|
||||
// always show an IBeamCursor, see change 170146
|
||||
|
Loading…
x
Reference in New Issue
Block a user