tst_QCursor::equality(): Silence warnings
Silence numerous warnings:
QCursor: Cannot create bitmap cursor; invalid bitmap(s)
Amends 6445aa4b06.
Change-Id: I7b467cdeeaa7a854c2878cf1ed2a6113d8c96059
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
bb10
parent
c067083057
commit
f2fd5f390c
|
|
@ -93,6 +93,9 @@ void tst_QCursor::equality()
|
|||
VERIFY_DIFFERENT(bitmapCursor, pixmapCursor);
|
||||
|
||||
// Empty pixmap
|
||||
for (int i = 0; i < 18; ++i)
|
||||
QTest::ignoreMessage(QtWarningMsg, "QCursor: Cannot create bitmap cursor; invalid bitmap(s)");
|
||||
|
||||
QPixmap emptyPixmap;
|
||||
QCursor emptyPixmapCursor(emptyPixmap);
|
||||
QCOMPARE(emptyPixmapCursor.shape(), Qt::ArrowCursor);
|
||||
|
|
|
|||
Loading…
Reference in New Issue