42 #include "QtTest/private/qsignaldumper_p.h" 44 #include <QtCore/qlist.h> 45 #include <QtCore/qmetaobject.h> 46 #include <QtCore/qmetatype.h> 47 #include <QtCore/qobject.h> 48 #include <QtCore/qvariant.h> 50 #include "QtTest/private/qtestlog_p.h" 81 if (QTest::ignoreClasses() && QTest::ignoreClasses()->contains(mo->
className())) {
103 for (
int i = 0; i < args.
count(); ++i) {
139 (QTest::ignoreClasses() && QTest::ignoreClasses()->contains(mo->
className())))
162 if (QTest::ignoreClasses()
178 typedef void (*BeginCallback)(
QObject *caller,
int method_index,
void **argv);
179 typedef void (*EndCallback)(
QObject *caller,
int method_index);
180 BeginCallback signal_begin_callback,
182 EndCallback signal_end_callback,
202 if (QTest::ignoreClasses())
203 QTest::ignoreClasses()->append(klass);
208 if (QTest::ignoreClasses())
209 QTest::ignoreClasses()->clear();
The QVariant class acts like a union for the most common Qt data types.
void Q_CORE_EXPORT qt_register_signal_spy_callbacks(const QSignalSpyCallbackSet &)
void chop(int n)
Removes n bytes from the end of the byte array.
QIntegerForSizeof< void * >::Unsigned quintptr
QByteArray & fill(char c, int size=-1)
Sets every byte in the byte array to character ch.
#define QT_END_NAMESPACE
This macro expands to.
static void clearIgnoredClasses()
QByteArray & append(char c)
Appends the character ch to this byte array.
QString objectName
the name of this object
The QByteArray class provides an array of bytes.
static void qSignalDumperCallbackEndSignal(QObject *caller, int)
static void qPrintMessage(const QByteArray &ba)
int count(const T &t) const
Returns the number of occurrences of value in the list.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
#define Q_GLOBAL_STATIC(TYPE, NAME)
Declares a global static variable with the given type and name.
const T & at(int i) const
Returns the item at index position i in the list.
char * toString(const QLatin1String &str)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QByteArray left(int len) const
Returns a byte array that contains the leftmost len bytes of this byte array.
static void ignoreClass(const QByteArray &klass)
static void qSignalDumperCallbackSlot(QObject *caller, int method_index, void **argv)
int indexOf(char c, int from=0) const
Returns the index position of the first occurrence of the character ch in the byte array...
QByteArray toLocal8Bit() const Q_REQUIRED_RESULT
Returns the local 8-bit representation of the string as a QByteArray.
const char * constData() const
Returns a pointer to the data stored in the byte array.
static void qSignalDumperCallback(QObject *caller, int method_index, void **argv)
static QByteArray memberName(const QMetaMethod &member)
static void info(const char *msg, const char *file, int line)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
static QByteArray number(int, int base=10)
Returns a byte array containing the string equivalent of the number n to base base (10 by default)...
The QTest namespace contains all the functions and declarations that are related to the QTestLib tool...
virtual const QMetaObject * metaObject() const
Returns a pointer to the meta-object of this object.
bool endsWith(const QByteArray &a) const
Returns true if this byte array ends with byte array ba; otherwise returns false. ...