4#include <QtTest/private/qsignaldumper_p.h>
6#include <QtCore/qlist.h>
7#include <QtCore/qmetaobject.h>
8#include <QtCore/qmetatype.h>
9#include <QtCore/qobject.h>
10#include <QtCore/qvariant.h>
12#include <QtTest/private/qtestlog_p.h>
14#include <QtCore/private/qmetaobject_p.h>
28Q_CONSTINIT thread_local
int iLevel = 0;
34 if (
Q_LIKELY(!ignoreClasses.exists()))
60 str +=
mo->className();
63 QString objname = caller->objectName();
77 if (
arg.endsWith(
'*') ||
arg.endsWith(
'&')) {
81 if (
arg.endsWith(
'&'))
118 str +=
mo->className();
121 QString objname = caller->objectName();
169 if (QTest::ignoreClasses())
170 QTest::ignoreClasses()->append(klass);
176 if (QTest::ignoreClasses.exists())
177 QTest::ignoreClasses()->clear();
180bool QSignalDumper::s_isEnabled =
false;
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
static QByteArray number(int, int base=10)
Returns a byte-array representing the whole number n as text.
qsizetype size() const noexcept
const_reference at(qsizetype i) const noexcept
static void ignoreClass(const QByteArray &klass)
static void setEnabled(bool)
static void clearIgnoredClasses()
\macro QT_RESTRICTED_CAST_FROM_ASCII
QString & fill(QChar c, qsizetype size=-1)
Sets every character in the string to character ch.
void chop(qsizetype n)
Removes n characters from the end of the string.
bool isEmpty() const noexcept
Returns true if the string has no characters; otherwise returns false.
bool endsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string ends with s; otherwise returns false.
QByteArray toLocal8Bit() const &
QString & append(QChar c)
static void info(const char *msg, const char *file, int line)
Combined button and popup list for selecting options.
Q_CONSTINIT thread_local int ignoreLevel
static void qSignalDumperCallback(QObject *caller, int signal_index, void **argv)
char * toString(const MyPoint &point)
static bool classIsIgnored(const char *className)
static void qPrintMessage(const QByteArray &ba)
static void qSignalDumperCallbackSlot(QObject *caller, int method_index, void **argv)
static bool isEmpty(const char *str)
Q_CONSTINIT thread_local int iLevel
static Q_CONSTINIT QBasicMutex ignoreClassesMutex
static void qSignalDumperCallbackEndSignal(QObject *caller, int)
#define Q_GLOBAL_STATIC(TYPE, NAME,...)
void qt_register_signal_spy_callbacks(QSignalSpyCallbackSet *callback_set)
GLenum GLenum GLsizei const GLuint GLboolean enabled
static char * toLocal8Bit(char *out, QStringView in, QStringConverter::State *state)
const char className[16]
[1]
QFuture< QSet< QChar > > set
[10]