Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qevent.cpp File Reference

(6e089a66a4d08a5d788c194560fccdec793e6337)

#include "qevent.h"
#include "qcursor.h"
#include "private/qguiapplication_p.h"
#include "private/qinputdevice_p.h"
#include "private/qpointingdevice_p.h"
#include "qpa/qplatformintegration.h"
#include "private/qevent_p.h"
#include "private/qeventpoint_p.h"
#include "qfile.h"
#include "qhashfunctions.h"
#include "qmetaobject.h"
#include "qmimedata.h"
#include "qevent_p.h"
#include "qmath.h"
#include "qloggingcategory.h"
#include "qpointer.h"
#include <private/qdebug_p.h>
#include "moc_qevent.cpp"
+ Include dependency graph for qevent.cpp:

Go to the source code of this file.

Macros

#define Q_IMPL_POINTER_EVENT(Class)
 

Functions

 Q_IMPL_POINTER_EVENT (QPointerEvent)
 
static void formatTouchEvent (QDebug d, const QTouchEvent &t)
 
static void formatUnicodeString (QDebug d, const QString &s)
 
static QDebug operator<< (QDebug dbg, const QInputMethodEvent::Attribute &attr)
 
static void formatInputMethodEvent (QDebug d, const QInputMethodEvent *e)
 
static void formatInputMethodQueryEvent (QDebug d, const QInputMethodQueryEvent *e)
 
static const char * eventClassName (QEvent::Type t)
 
QDebug operator<< (QDebug dbg, const QEventPoint *tp)
 
QDebug operator<< (QDebug dbg, const QEventPoint &tp)
 
QDebug operator<< (QDebug dbg, const QEvent *e)
 

Variables

 QT_BEGIN_NAMESPACE
 

Macro Definition Documentation

◆ Q_IMPL_POINTER_EVENT

#define Q_IMPL_POINTER_EVENT ( Class)
Value:
Class::Class(const Class &) = default; \
Class::~Class() = default; \
Class* Class::clone() const \
{ \
auto c = new Class(*this); \
for (auto &point : c->m_points) \
QMutableEventPoint::detach(point); \
QEvent *e = c; \
/* check that covariant return is safe to add */ \
Q_ASSERT(reinterpret_cast<quintptr>(c) == reinterpret_cast<quintptr>(e)); \
return c; \
}
\inmodule QtCore
Definition qcoreevent.h:46
const GLubyte * c
size_t quintptr
Definition qtypes.h:185

Definition at line 34 of file qevent.cpp.

Function Documentation

◆ eventClassName()

static const char * eventClassName ( QEvent::Type t)
static

Definition at line 3890 of file qevent.cpp.

◆ formatInputMethodEvent()

static void formatInputMethodEvent ( QDebug d,
const QInputMethodEvent * e )
inlinestatic

Definition at line 3835 of file qevent.cpp.

◆ formatInputMethodQueryEvent()

static void formatInputMethodQueryEvent ( QDebug d,
const QInputMethodQueryEvent * e )
inlinestatic

Definition at line 3864 of file qevent.cpp.

◆ formatTouchEvent()

static void formatTouchEvent ( QDebug d,
const QTouchEvent & t )
inlinestatic

Definition at line 3807 of file qevent.cpp.

◆ formatUnicodeString()

static void formatUnicodeString ( QDebug d,
const QString & s )
static

Definition at line 3817 of file qevent.cpp.

◆ operator<<() [1/4]

QDebug operator<< ( QDebug dbg,
const QEvent * e )

Definition at line 4097 of file qevent.cpp.

◆ operator<<() [2/4]

QDebug operator<< ( QDebug dbg,
const QEventPoint & tp )

Definition at line 4065 of file qevent.cpp.

◆ operator<<() [3/4]

QDebug operator<< ( QDebug dbg,
const QEventPoint * tp )

Definition at line 4056 of file qevent.cpp.

◆ operator<<() [4/4]

static QDebug operator<< ( QDebug dbg,
const QInputMethodEvent::Attribute & attr )
static

Definition at line 3828 of file qevent.cpp.

◆ Q_IMPL_POINTER_EVENT()

Q_IMPL_POINTER_EVENT ( QPointerEvent )

Variable Documentation

◆ QT_BEGIN_NAMESPACE

QT_BEGIN_NAMESPACE
related

Definition at line 52 of file qevent.cpp.