Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qanimationjobutil_p.h File Reference

(7c33b6e9571d0ee25808acf87b1c7e7317a5a9be)

#include <QtCore/qcompilerdetection.h>
#include <QtCore/qtconfigmacros.h>
#include <type_traits>
+ Include dependency graph for qanimationjobutil_p.h:

Go to the source code of this file.

Classes

struct  SelfDeletable
 

Macros

#define ACTION_IF_DISABLE_DANGLING_POINTER_WARNING
 
#define ACTION_IF_DELETED(p, func, action)
 
#define RETURN_IF_DELETED(func)   ACTION_IF_DELETED(this, func, return)
 

Functions

 QT_REQUIRE_CONFIG (qml_animation)
 

Macro Definition Documentation

◆ ACTION_IF_DELETED

#define ACTION_IF_DELETED ( p,
func,
action )
Value:
do { \
QT_WARNING_PUSH \
ACTION_IF_DISABLE_DANGLING_POINTER_WARNING \
static_assert(std::is_same<decltype((p)->m_selfDeletable), SelfDeletable>::value, "m_selfDeletable must be SelfDeletable");\
bool *prevWasDeleted = (p)->m_selfDeletable.m_wasDeleted; \
bool wasDeleted = false; \
(p)->m_selfDeletable.m_wasDeleted = &wasDeleted; \
{func;} \
if (wasDeleted) { \
if (prevWasDeleted) \
*prevWasDeleted = true; \
{action;} \
} \
(p)->m_selfDeletable.m_wasDeleted = prevWasDeleted; \
} while (false)
#define QT_WARNING_POP
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLenum func
Definition qopenglext.h:663
GLfloat GLfloat p
[1]

Definition at line 45 of file qanimationjobutil_p.h.

Referenced by QQuickItemViewTransitionableItem::prepareTransition().

◆ ACTION_IF_DISABLE_DANGLING_POINTER_WARNING

#define ACTION_IF_DISABLE_DANGLING_POINTER_WARNING

Definition at line 28 of file qanimationjobutil_p.h.

◆ RETURN_IF_DELETED

Function Documentation

◆ QT_REQUIRE_CONFIG()

QT_REQUIRE_CONFIG ( qml_animation )