50 #pragma qt_class(QtTestGui) 53 #include <QtTest/qtestassert.h> 54 #include <QtTest/qtest.h> 55 #include <QtTest/qtestevent.h> 56 #include <QtTest/qtestmouse.h> 57 #include <QtTest/qtesttouch.h> 58 #include <QtTest/qtestkeyboard.h> 60 #include <QtGui/qicon.h> 61 #include <QtGui/qpixmap.h> 65 #pragma qt_no_master_include 79 const char *file,
int line)
82 return qCompare<void *>(*
reinterpret_cast<void *
const *
>(&t1),
83 *reinterpret_cast<void * const *>(&t2), actual, expected, file, line);
88 const char *file,
int line)
99 if (!actual && !expected)
101 if (!actual || !expected)
bool qCompare(QString const &t1, QLatin1String const &t2, const char *actual, const char *expected, const char *file, int line)
QImage toImage() const
Converts the pixmap to a QImage.
#define QT_END_NAMESPACE
This macro expands to.
QSize size() const
Returns the size of the pixmap.
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define QTEST_ASSERT(cond)
The QPixmap class is an off-screen image representation that can be used as a paint device...
void qt_x11_wait_for_window_manager(QWidget *w)
bool isNull() const
Returns true if this is a null pixmap; otherwise returns false.
The QTest namespace contains all the functions and declarations that are related to the QTestLib tool...
static bool pixmapsAreEqual(const QPixmap *actual, const QPixmap *expected)
The QIcon class provides scalable icons in different modes and states.